@henderea/static-site-builder 1.10.88 → 1.10.89

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.
@@ -6,6 +6,7 @@ import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
6
6
  import { WebpackManifestPlugin } from 'webpack-manifest-plugin';
7
7
  import CopyPlugin from 'copy-webpack-plugin';
8
8
  import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
9
+ import TerserPlugin from 'terser-webpack-plugin';
9
10
  import getClientEnvironment from './env.js';
10
11
  import * as paths from './paths.js';
11
12
  import _ from 'lodash';
@@ -246,7 +247,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
246
247
  // its runtime that would otherwise processed through "file" loader.
247
248
  // Also exclude `html` and `json` extensions so they get processed
248
249
  // by webpack's internal loaders.
249
- exclude: [/\.[cm]?jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
250
+ exclude: [/\.[cm]?jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/, /^$/],
250
251
  options: {
251
252
  name: '[name].[ext]'
252
253
  }
@@ -255,6 +256,11 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
255
256
  }
256
257
  ]
257
258
  },
259
+ optimization: {
260
+ minimizer: [new TerserPlugin({
261
+ extractComments: false
262
+ })]
263
+ },
258
264
  plugins,
259
265
  performance: {
260
266
  hints: false,
@@ -9,6 +9,7 @@ import CopyPlugin from 'copy-webpack-plugin';
9
9
  import { GenerateSW } from 'workbox-webpack-plugin';
10
10
  import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
11
11
  import MomentLocalesPlugin from 'moment-locales-webpack-plugin';
12
+ import TerserPlugin from 'terser-webpack-plugin';
12
13
  import getClientEnvironment from './env.js';
13
14
  import * as paths from './paths.js';
14
15
  import _ from 'lodash';
@@ -377,7 +378,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
377
378
  // its runtime that would otherwise processed through "file" loader.
378
379
  // Also exclude `html` and `json` extensions so they get processed
379
380
  // by webpack's internal loaders.
380
- exclude: [/\.[cm]?jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
381
+ exclude: [/\.[cm]?jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/, /^$/],
381
382
  options: {
382
383
  name: '[name].[ext]'
383
384
  }
@@ -386,6 +387,11 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
386
387
  }
387
388
  ]
388
389
  },
390
+ optimization: {
391
+ minimizer: [new TerserPlugin({
392
+ extractComments: false
393
+ })]
394
+ },
389
395
  plugins,
390
396
  performance
391
397
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henderea/static-site-builder",
3
- "version": "1.10.88",
3
+ "version": "1.10.89",
4
4
  "description": "A static site builder",
5
5
  "main": "index.js",
6
6
  "repository": "henderea/static-site-builder.git",
@@ -54,6 +54,7 @@
54
54
  "sass-loader": "^16.0.4",
55
55
  "strip-ansi": "^7.1.0",
56
56
  "style-loader": "^4.0.0",
57
+ "terser-webpack-plugin": "^5.3.11",
57
58
  "thread-loader": "^4.0.4",
58
59
  "ts-loader": "^9.5.1",
59
60
  "tsconfig-paths-webpack-plugin": "^4.2.0",