Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
feat: Allow disabling clean CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Aug 28, 2018
1 parent 3c31e95 commit 9d43b80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export class SFCCompiler {
let tokens = undefined
const needsCSSModules =
style.module === true || typeof style.module === 'string'
const needsCleanCSS =
this.template.isProduction && !(this.style.postcssCleanOptions && this.style.postcssCleanOptions.disabled)
const postcssPlugins = [
needsCSSModules
? postcssModules({
Expand All @@ -165,7 +167,7 @@ export class SFCCompiler {
}
})
: undefined,
this.template.isProduction
needsCleanCSS
? postcssClean(this.style.postcssCleanOptions)
: undefined
]
Expand Down

0 comments on commit 9d43b80

Please sign in to comment.