We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2312310 commit 9cdd6bfCopy full SHA for 9cdd6bf
vue.config.js
@@ -1,7 +1,9 @@
1
+const { getIfUtils } = require('webpack-config-utils');
2
const StyleLintPlugin = require('stylelint-webpack-plugin');
3
const {
4
patternlabVuePluginConfig
5
} = require('./buildScripts/patternlabWebpackPlugins');
6
+const { ifProduction } = getIfUtils(process.env.NODE_ENV || '');
7
8
// vue.config.js
9
module.exports = {
@@ -16,7 +18,9 @@ module.exports = {
16
18
},
17
19
20
chainWebpack: (config) => {
- patternlabVuePluginConfig(config);
21
+ if (!ifProduction()) {
22
+ patternlabVuePluginConfig(config);
23
+ }
24
config.plugin('stylelint-webpack-plugin').use(new StyleLintPlugin({
25
files: ['**/*.{vue,scss}'],
26
}));
0 commit comments