@lightscale/webpack-config 1.1.1 → 1.2.0

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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as path from 'path';
2
2
  import MiniCssExtractPlugin from 'mini-css-extract-plugin';
3
+ import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts';
3
4
  import NotifierPlugin from 'webpack-notifier';
4
5
  import ManifestPlugin from 'webpack-assets-manifest';
5
6
  import StylelintPlugin from 'stylelint-webpack-plugin';
@@ -114,6 +115,7 @@ export const makeConfig = (env, argv, options) => {
114
115
  new CleanWebpackPlugin({
115
116
  cleanStaleWebpackAssets: !isWatch
116
117
  }),
118
+ new RemoveEmptyScriptsPlugin(),
117
119
  new MiniCssExtractPlugin({
118
120
  filename: 'css/[name].[contenthash:8].css',
119
121
  chunkFilename: '[id].[contenthash:8].css'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightscale/webpack-config",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Basic webpack config with js babel, postcss, scss, svg",
5
5
  "main": "index.js",
6
6
  "auther": "Sam Light",
@@ -44,6 +44,7 @@
44
44
  "webpack-assets-manifest": "^5.0.6",
45
45
  "webpack-cli": "^6.0.0",
46
46
  "webpack-notifier": "^1.12.0",
47
+ "webpack-remove-empty-scripts": "^1.0.4",
47
48
  "webpackbar": "^7.0.0"
48
49
  }
49
50
  }