-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack - Included CSS files are not minified #490
Comments
hmmm. Okay will look into it. |
Have tried minimizing using optimize-css-assets-webpack-plugin but no dice with comments. Someone else has opened an issue on this so I'll keep an eye on it: |
It's not just the comments (But that's what caught my attention) It is isn't minified at all. |
The above plugin does seem to remove spacing but for some reason not the '`n'. |
Bus should something like A "dirty" solution would be to minify the CSS manually and place the minified version in the styles folder together with the unminified. (JSON-Editor doesn't use the external stylesheets much, so it rarely gets updated) And then refer to the minified version in the Webpack setup. |
No that doesn't appear to be happening - I'll look into finding a clean way - someone else must have solved this - before resorting to dirty. |
Thanks - I'm already using them. |
Maybe useful: https://github.com/marharyta/webpack-boilerplate |
* fix: issue json-editor#490 * Remove unused plugins * use postcss-loader
fixed in #647 |
@sirockin I noticed that in the
jsoneditor.js
build by Webpack, the CSS is now included. But this seems to be unminified, so comments are included. See below:The text was updated successfully, but these errors were encountered: