Do not parse CSS on missed plugins or parser/stringifier option
See original GitHub issueRight now we are showing warning:
You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.
https://github.com/postcss/postcss/blob/main/lib/processor.js#L19
But many people complain that they can fix it since PostCSS is used wrongly somewhere inside build pipeline.
We can avoid warning if PostCSS will not parse CSS in this case. We can add something like NoWorkResult
, where NoWorkResult#css
key will be equal to input. On NoWorkResult#root
read we still need to parse CSS. And we need to find the best way to deal with NoWorkResult#map
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Suppress no plugins warning · Issue #1218 · postcss ... - GitHub
I considered that, but postcss.parse(css) won't make use of the other processor options, like syntax , parser , map , etc ...
Read more >jest trying to parse .css - Stack Overflow
The best solution is to use a moduleNameMapper line in your Jest config, as described in the Jest docs. A minimal "ignore css"...
Read more >css-loader | webpack - JS.ORG
If set to false , css-loader will not parse any paths specified in url or image-set . A function can also be passed...
Read more >Broke my site - WordPress.org
Hello, ever since I have installed your plugin my site is broken! I tried uninstalling it, deactivating it, clearing the cache from ftp,...
Read more >Theme is missing the style.css stylesheet error
A common issue that can occur when installing a WordPress themes is “The package could not be installed. The theme is missing the......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If there are no changes between input and output, you can add only a single map mapping from the whole file to the whole file.
You do not need to create mapping per each CSS part if there are no changes.
Got it, thanks.