@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrpelz/boilerplate-dom",
3
- "version": "12.2.1",
3
+ "version": "12.3.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mrpelz/boilerplate.git",
@@ -160,8 +160,4 @@ fi
160
160
  # shellcheck disable=SC1091
161
161
  source "${SCRIPT_PATH}/common-post.sh"
162
162
 
163
- if check_response "📂 create \"static\" directory (this will *not* overwrite/empty out existing directories)?" y; then
164
- mkdir -p static
165
- fi
166
-
167
163
  echo "✅ done"
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
- export const dirStatic = path.resolve(dirBase, 'static');
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: 'nosources-source-map',
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({