File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
test/fixture/configs/postcss Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ const MODES = {
8
8
postcss : 'postcss'
9
9
}
10
10
11
- export default function nuxtPurgeCss ( ) {
12
- const { srcDir, purgeCSS = { } } = this . options
11
+ export default function nuxtPurgeCss ( moduleOptions ) {
12
+ const { srcDir, purgeCSS = { } } = Object . assign ( { } , this . options )
13
+
14
+ Object . assign ( purgeCSS , moduleOptions )
13
15
14
16
logger . start ( 'Loading module' )
15
17
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module.exports = {
8
8
resourceHints : false
9
9
} ,
10
10
dev : false ,
11
- modules : [ '@@' ] ,
11
+ modules : [ [ '@@' , { mode : 'postcss' } ] ] ,
12
12
build : {
13
13
quiet : false ,
14
14
optimization : {
@@ -22,7 +22,6 @@ module.exports = {
22
22
}
23
23
} ,
24
24
purgeCSS : {
25
- mode : 'postcss' ,
26
25
paths : [ 'custom/**/*.vue' ] ,
27
26
styleExtensions : [ '.css' ] ,
28
27
whitelist : [ 'whitelist' ] ,
You can’t perform that action at this time.
0 commit comments