Skip to content

Commit

Permalink
Remove condition for config override
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindehli committed Oct 31, 2020
1 parent b37a27b commit 8cab8a4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module.exports = function override(config, env) {
//do stuff with the webpack config...
if (env === 'production'){
config.plugins['MiniCssExtractPlugin'] = {
filename: '[name].css',
chunkFilename: '[id].css',
ignoreOrder: true, // Enable to remove warnings about conflicting order
}
config.plugins['MiniCssExtractPlugin'] = {
filename: '[name].css',
chunkFilename: '[id].css',
ignoreOrder: true, // Enable to remove warnings about conflicting order
}
config.module.rules[1].oneOf[0].options.limit = 0; // Disable base64 on small images
return config;
Expand Down

0 comments on commit 8cab8a4

Please sign in to comment.