Browse Source

Fixees #1747

Don't rewrite the urls for assets loaded via `url()` in CSS.

Instead, they should be relative to the CSS file.
JC Brand 5 năm trước cách đây
mục cha
commit
d833120f5e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      webpack.prod.js

+ 5 - 1
webpack.prod.js

@@ -29,7 +29,11 @@ module.exports = merge(common, {
                 MiniCssExtractPlugin.loader,
                 {
                     loader: 'css-loader',
-                    options: {sourceMap: true}
+                    options: {
+                        url: false,
+                        sourceMap: true
+
+                    }
                 },
                 'postcss-loader',
                 {