1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const postcss = require("postcss");
|
4 | // ESM import of clean-css breaks test/runtime check this fix for reference:
|
5 | // https://github.com/vuejs/vue-component-compiler/pull/103#issuecomment-632676899
|
6 | const CleanCSS = require('clean-css');
|
7 | exports.default = postcss.plugin('clean', (options) => {
|
8 | const clean = new CleanCSS(Object.assign({ compatibility: 'ie9' }, options));
|
9 | return (css, res) => {
|
10 | const output = clean.minify(css.toString());
|
11 | res.root = postcss.parse(output.styles);
|
12 | };
|
13 | });
|