@mrpelz/boilerplate-dom 12.2.1 → 12.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css.map +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/scripts/bootstrap.sh +0 -4
- package/webpack.config.js +5 -11
package/dist/main.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.css","mappings":"AAAA,KACE,qBAAuB,CACvB,UACF","sources":["./src/main.css"],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"main.css","mappings":"AAAA,KACE,qBAAuB,CACvB,UACF","sources":["./src/main.css"],"sourcesContent":["body {\n background-color: black;\n color: white;\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","mappings":"yBAAA,IAAIA,EAAOC,KAAKC,SAAW,GAAM,eAAiB,KAGlDC,QAAQC,IAAIJ,E","sources":["./src/main.ts"],"names":["test","Math","random","console","log"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"main.js","mappings":"yBAAA,IAAIA,EAAOC,KAAKC,SAAW,GAAM,eAAiB,KAGlDC,QAAQC,IAAIJ,E","sources":["./src/main.ts"],"sourcesContent":["let test = Math.random() > 0.5 ? 'Hello World!' : null;\n\n// eslint-disable-next-line no-console\nconsole.log(test);\n"],"names":["test","Math","random","console","log"],"sourceRoot":""}
|
package/package.json
CHANGED
package/scripts/bootstrap.sh
CHANGED
package/webpack.config.js
CHANGED
|
@@ -8,7 +8,8 @@ export const dirBase = process.cwd();
|
|
|
8
8
|
|
|
9
9
|
export const dirDist = path.resolve(dirBase, 'dist');
|
|
10
10
|
export const dirSrc = path.resolve(dirBase, 'src');
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
export const webpackServe = process.env.WEBPACK_SERVE === 'true';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @typedef ConfigurationExtended
|
|
@@ -20,17 +21,9 @@ export default {
|
|
|
20
21
|
devServer: {
|
|
21
22
|
compress: true,
|
|
22
23
|
port: 3000,
|
|
23
|
-
static: [
|
|
24
|
-
{
|
|
25
|
-
directory: dirSrc,
|
|
26
|
-
publicPath: '/src',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
directory: dirStatic,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
24
|
+
static: [],
|
|
32
25
|
},
|
|
33
|
-
devtool: '
|
|
26
|
+
devtool: webpackServe ? 'eval-cheap-module-source-map' : 'source-map',
|
|
34
27
|
entry: [path.resolve(dirSrc, 'main.ts'), path.resolve(dirSrc, 'main.css')],
|
|
35
28
|
mode: 'production',
|
|
36
29
|
module: {
|
|
@@ -62,6 +55,7 @@ export default {
|
|
|
62
55
|
devtoolModuleFilenameTemplate: '[resource-path]',
|
|
63
56
|
path: dirDist,
|
|
64
57
|
},
|
|
58
|
+
performance: false,
|
|
65
59
|
plugins: [
|
|
66
60
|
new MiniCssExtractPlugin(),
|
|
67
61
|
new HtmlWebpackPlugin({
|