background-size: contain;
}
</style>
开发环境截图:

添加构建路径配置
添加
ExtractTextPlugin中
publicPath配置,这里根据实际情况配:
//build/util.js
// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader',
publicPath: '../../',
})
} else {
return ['vue-style-loader'].concat(loaders)
}生产环境截图:











