From 49783464242dd628668869699c67d427da3c9525 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 20 Jan 2019 11:08:17 +0300 Subject: Use stylelint as postcss plugin --- webpack.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index 18db4ec5..9056e0a0 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'); @@ -47,6 +46,7 @@ module.exports = (env, argv) => { { loader: 'postcss-loader', options: { plugins: () => [ + require('stylelint')(), require('postcss-preset-env')() ] } @@ -58,7 +58,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 }) ], }; -- cgit v1.2.3 From 7df88497f994eb4e470b39f146bfc1a35d1228e3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 2 Feb 2019 21:06:59 +0300 Subject: add es6.weak-map module required for android 4 browser --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index 9056e0a0..1075a46d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,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', -- cgit v1.2.3