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

Commit b1aff3f

Browse files
authored
fix: set correct clean-css import (#103)
1 parent ac34efc commit b1aff3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/postcss-clean.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import * as postcss from 'postcss'
2-
import CleanCSS from 'clean-css'
2+
// ESM import of clean-css breaks test/runtime check this fix for reference:
3+
// https://github.com/vuejs/vue-component-compiler/pull/103#issuecomment-632676899
4+
const CleanCSS = require('clean-css')
35

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy