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

fix: set correct clean-css import #103

Merged
merged 1 commit into from
May 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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