File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
const { resolve } = require ( 'path' ) ;
2
3
const fs = require ( 'fs-extra' ) ;
3
4
const { warn, done } = require ( '@vue/cli-shared-utils' ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const PatternLabPlugin = require('./PatternlabPlugin');
4
4
5
5
const plConfig = require ( '../patternlab-config.json' ) ;
6
6
7
- const ifDevelopment = process . env . NODE_ENV !== 'production ';
7
+ const ifDevelopment = process . env . NODE_ENV === 'development ';
8
8
const contentBaseDir = resolve ( './' , plConfig . paths . public . root ) ;
9
9
10
10
/**
Original file line number Diff line number Diff line change 7
7
} = require ( './buildScripts/patternlabWebpackPlugins' ) ;
8
8
9
9
const ifProduction = process . env . NODE_ENV === 'production' ;
10
+ const ifDevelopment = process . env . NODE_ENV === 'development' ;
10
11
11
12
module . exports = defineConfig ( {
12
13
transpileDependencies : true ,
@@ -21,7 +22,7 @@ module.exports = defineConfig({
21
22
} ,
22
23
23
24
chainWebpack : ( config ) => {
24
- if ( ! ifProduction ) {
25
+ if ( ifDevelopment ) {
25
26
patternlabVuePluginConfig ( config ) ;
26
27
}
27
28
config . plugin ( 'stylelint-webpack-plugin' ) . use ( new StyleLintPlugin ( {
@@ -30,7 +31,7 @@ module.exports = defineConfig({
30
31
} ,
31
32
32
33
configureWebpack : ( config ) => {
33
- if ( ! ifProduction ) {
34
+ if ( ifDevelopment ) {
34
35
patternlabVueWebpackConfig ( config ) ;
35
36
}
36
37
} ,
You can’t perform that action at this time.
0 commit comments