Skip to content

Commit e1340b2

Browse files
committed
fix 在css的url中的路径问题
1 parent 18c9140 commit e1340b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ exports.cssLoaders = function (options) {
2828
// Extract CSS when that option is specified
2929
// (which is the case during production build)
3030
if (options.extract) {
31-
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
31+
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader,{
32+
publicPath:'../../'
33+
})
3234
} else {
3335
return ['vue-style-loader', sourceLoader].join('!')
3436
}

0 commit comments

Comments
 (0)