在项目目录下的build/utils.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: '../../' // 解决ele小图标出不来问题
})
} else {
return ['vue-style-loader'].concat(loaders)
}