File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ export default function nuxtPurgeCss(moduleOptions) {
64
64
config . paths = glob . sync ( config . paths . map ( p => path . join ( srcDir , p ) ) )
65
65
66
66
if ( ! enabled ) {
67
+ if ( typeof purgeCSS . enabled === 'undefined' ) {
68
+ logger . info ( 'PurgeCSS is not enabled because you are in dev mode' )
69
+ return
70
+ }
67
71
logger . warn ( 'Module is not enabled' )
68
72
return
69
73
}
Original file line number Diff line number Diff line change 20
20
"access" : " public"
21
21
},
22
22
"scripts" : {
23
- "dev" : " nuxt build --config-file test/fixture/configs/default.js" ,
23
+ "dev" : " nuxt --config-file test/fixture/configs/postcss /default.js" ,
24
24
"lint" : " eslint lib test" ,
25
25
"test" : " yarn run lint && jest --detectOpenHandles" ,
26
26
"release" : " standard-version && git push --follow-tags && npm publish" ,
You can’t perform that action at this time.
0 commit comments