Comments (1)
Since this package is unlikely to be patched, I used https://www.npmjs.com/package/patch-package to silence the warning
-exports.default = postcss.plugin('clean', (options) => {
+exports.default = (options) => {
const clean = new CleanCSS(Object.assign({ compatibility: 'ie9' }, options));
- return (css, res) => {
+ return {
+ postcssPlugin: 'clean',
+ Once(css, res) {
const output = clean.minify(css.toString());
res.root = postcss.parse(output.styles);
+ },
};
-});
+};
+exports.postcss = true
from vue-component-compiler.
Related Issues (20)
- Getting "clean_css_1.default is not a constructor" errors on latest release HOT 1
- Update pug dependency? HOT 2
- Npm error, unable to install package HOT 1
- Integration with transpilers HOT 4
- For Base64 injection the comment link here is broken
- [Question] Is there a rough timeline for the rewrite? HOT 1
- SSR optimization logic on runtime. HOT 1
- Support `data` option in preprocess style options to share common content as vars or imports
- 3.4.0 always adds "data-v" attributes, even for non-scoped styles
- Please update the version of dependence `@vue/component-compiler-utils` to `^2.0.0` HOT 1
- 3.4.4 dist files out of sync HOT 1
- ES6 injection HOT 2
- ES6 module support HOT 2
- For TemplateOptions, is there a way to set isProduction without setting compiler and compilerOptions?
- Order of postcss modules when provided other postcss plugins HOT 2
- Move HEAD assignment for SSR compatibility (assembler)
- btoa in css source break SSR HOT 6
- Using the compiled component HOT 2
- PostCSS dependency type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-component-compiler.