diff --git a/source/webpack.config.js b/source/webpack.config.js index c7df0ec94..5c0b38bd6 100644 --- a/source/webpack.config.js +++ b/source/webpack.config.js @@ -75,8 +75,9 @@ module.exports = { }, { test: /\.(jpe?g|png|gif|svg)$/i, - loader: - 'url-loader?limit=10000&name=images/[name].[ext]!img-loader?progressive=true' + loader: prodEnv ? + 'url-loader?limit=10000&name=images/[name].[ext]!img-loader?progressive=true' : + 'url-loader?limit=10000&name=images/[name].[ext]' }, { test: /\.ne$/,