faceyspacey / faceyspacey/webpack-flush-chunks

Raw CSS on development environment

Open
#85 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
354
Forks
30
PR merge metrics
No merged PRs in 30d

Description

I'm using `webpack-flush-chunks` version `2.0.3`
I noticed these lines of code:
```
css: {
toString: function toString() {
return (
// lazy-loaded in case not used
DEV ? api.styles.toString() : '' + stylesAsString(stylesheets, outputPath) + ''
);
}
}
```
Is there a particular reason why we are only showing raw CSS on non-`DEV` environment only? I just thought that it is better to return the raw CSS regardless of the environment. And use the exposed `styles` variable to get the linked stylesheets, the way it is now.
Doing this will make us see in dev as closely as possible with what we are going to see in production.

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.