-
Notifications
You must be signed in to change notification settings - Fork 519
vendor js/css not minified with env-prod command? #844
Comments
Hello Andrew, I believe that's expected. AFAIK { test: /\.css(\?|$)/, use: extractCSS.extract({ use: isDevBuild ? 'css-loader' : 'css-loader?minimize' }) } Please be advised that I only had time to test it using the Angular template. Perhaps someone can address whether a PR to support minified vendor.css in production is welcome and if there is a better approach to implement it. Best, |
@etimesg thanks for the response! Still getting my head wrapped around webpack but this modification makes sense. I too am interested in any other suggestions or why it wasn't set to be minimized in Prod by default. |
I think it could be minified in the prod builds. That would be a nice enhancement. A pull request for that would be welcomed :) |
Using the base webpack files. Running the following webpack command:
webpack --config webpack.config.vendor.js --env.prod
I'm seeing it regenerate the vendor.css and vendor.js successfully locally.
However when I open the vendor.css file I'm not seeing it minified. I also have the template published to Azure, and it's not minified there either.
What am I missing here?
The text was updated successfully, but these errors were encountered: