aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 18db4ec5..1075a46d 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,5 +1,4 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
-const StyleLintPlugin = require('stylelint-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
@@ -20,6 +19,7 @@ module.exports = (env, argv) => {
'core-js/modules/es6.promise',
'core-js/modules/es6.regexp.split',
'core-js/modules/es6.symbol',
+ 'core-js/modules/es6.weak-map',
'core-js/modules/web.dom.iterable',
'url-polyfill',
'whatwg-fetch',
@@ -47,6 +47,7 @@ module.exports = (env, argv) => {
{
loader: 'postcss-loader', options: {
plugins: () => [
+ require('stylelint')(),
require('postcss-preset-env')()
]
}
@@ -58,7 +59,6 @@ module.exports = (env, argv) => {
]
},
plugins: [
- new StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/assets', files: ['**/*.css'], emitErrors: false }),
new MiniCssExtractPlugin({ filename: 'style.css', allChunks: true })
],
};