You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like stylesheet minimization is not enabled by default on production env. It was previously achieved by new webpack.LoaderOptionsPlugin({minimize: true}) in production.js but this was removed here a858f8e#diff-f83786ad580b744c4ee876b6fe21c138
I think we have 3 options to get back minimization:
Get back webpack.LoaderOptionsPlugin({minimize: true}) to production.js
Modify loaders/sass.js to something like use: [ { loader: 'css-loader', options: { minimize: env.NODE_ENV === 'production' } }, 'postcss-loader', 'sass-loader'] which seems ugly solution
Add --optimize-minimize or -p options to webpack in webpacker:compile task
Seems like stylesheet minimization is not enabled by default on production env. It was previously achieved by
new webpack.LoaderOptionsPlugin({minimize: true})
inproduction.js
but this was removed here a858f8e#diff-f83786ad580b744c4ee876b6fe21c138I think we have 3 options to get back minimization:
webpack.LoaderOptionsPlugin({minimize: true})
toproduction.js
loaders/sass.js
to something likeuse: [ { loader: 'css-loader', options: { minimize: env.NODE_ENV === 'production' } }, 'postcss-loader', 'sass-loader']
which seems ugly solution--optimize-minimize
or-p
options towebpack
inwebpacker:compile
task@gauravtiwari What do you think?
The text was updated successfully, but these errors were encountered: