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

Commit

Permalink
fix: set correct clean-css import (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemkow authored May 22, 2020
1 parent ac34efc commit b1aff3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/postcss-clean.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import * as postcss from 'postcss'
import CleanCSS from 'clean-css'
// ESM import of clean-css breaks test/runtime check this fix for reference:
// https://github.com/vuejs/vue-component-compiler/pull/103#issuecomment-632676899
const CleanCSS = require('clean-css')

export default postcss.plugin('clean', (options: any) => {
const clean = new CleanCSS({ compatibility: 'ie9', ...options })
Expand Down

0 comments on commit b1aff3f

Please sign in to comment.