@lightscale/webpack-config 1.1.1 → 1.3.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.
- package/index.js +3 -1
- package/package.json +10 -9
package/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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
|
-
import ManifestPlugin from 'webpack-assets-manifest';
|
|
5
|
+
import {WebpackAssetsManifest as ManifestPlugin} from 'webpack-assets-manifest';
|
|
5
6
|
import StylelintPlugin from 'stylelint-webpack-plugin';
|
|
6
7
|
import EsLintPlugin from 'eslint-webpack-plugin';
|
|
7
8
|
import WebpackbarPlugin from 'webpackbar';
|
|
@@ -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.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Basic webpack config with js babel, postcss, scss, svg",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"auther": "Sam Light",
|
|
@@ -19,31 +19,32 @@
|
|
|
19
19
|
"ajv": "^8.12.0",
|
|
20
20
|
"autoprefixer": "^10.4.0",
|
|
21
21
|
"babel-loader": "^10.0.0",
|
|
22
|
-
"babel-plugin-polyfill-corejs3": "^0.
|
|
22
|
+
"babel-plugin-polyfill-corejs3": "^0.14.0",
|
|
23
23
|
"clean-terminal-webpack-plugin": "^3.0.0",
|
|
24
24
|
"clean-webpack-plugin": "^4.0.0",
|
|
25
25
|
"css-loader": "^7.0.0",
|
|
26
26
|
"eslint": "^9.0.0",
|
|
27
27
|
"eslint-webpack-plugin": "^5.0.0",
|
|
28
|
-
"glob": "^
|
|
28
|
+
"glob": "^13.0.0",
|
|
29
29
|
"mini-css-extract-plugin": "^2.4.2",
|
|
30
30
|
"postcss": "^8.4.5",
|
|
31
31
|
"postcss-loader": "^8.0.0",
|
|
32
|
-
"postcss-preset-env": "^
|
|
32
|
+
"postcss-preset-env": "^11.0.0",
|
|
33
33
|
"postcss-scss": "^4.0.2",
|
|
34
34
|
"sass": "^1.32.0",
|
|
35
35
|
"sass-loader": "^16.0.0",
|
|
36
36
|
"style-loader": "^4.0.0",
|
|
37
37
|
"stylelint": "^16.0.0",
|
|
38
|
-
"stylelint-config-recommended-scss": "^
|
|
39
|
-
"stylelint-config-standard": "^
|
|
40
|
-
"stylelint-scss": "^
|
|
38
|
+
"stylelint-config-recommended-scss": "^16.0.0",
|
|
39
|
+
"stylelint-config-standard": "^39.0.0",
|
|
40
|
+
"stylelint-scss": "^7.0.0",
|
|
41
41
|
"stylelint-webpack-plugin": "^5.0.0",
|
|
42
|
-
"svg-chunk-webpack-plugin": "^
|
|
42
|
+
"svg-chunk-webpack-plugin": "^8.0.0",
|
|
43
43
|
"webpack": "^5.11.1",
|
|
44
|
-
"webpack-assets-manifest": "^
|
|
44
|
+
"webpack-assets-manifest": "^6.0.0",
|
|
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
|
}
|