diff --git a/build/utils.js b/build/utils.js
index 65991421..5220a400 100644
--- a/build/utils.js
+++ b/build/utils.js
@@ -16,7 +16,6 @@ exports.cssLoaders = function (options) {
loader: 'css-loader',
options: {
minimize: process.env.NODE_ENV === 'production',
- url: process.env.NODE_ENV !== 'production',
sourceMap: options.sourceMap
}
}
@@ -35,8 +34,13 @@ exports.cssLoaders = function (options) {
// Extract CSS when that option is specified
// (which is the case during production build)
+ // Remarks: Unfortunately ExtractTextPlugin is not able to rewrite url paths to resources
+ // referenced in the extracted css. As a workaround, override publicPath, which will work because all
+ // css resources end up in /static/css. For more information see
+ // https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/27
if (options.extract) {
return ExtractTextPlugin.extract({
+ publicPath: '../../',
use: loaders,
fallback: 'vue-style-loader'
})
diff --git a/embedded.html b/embedded.html
index 7a1482d5..b8e80c3f 100644
--- a/embedded.html
+++ b/embedded.html
@@ -5,9 +5,6 @@