This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// var webpack = require('webpack');
constpath=require('path')
functionresolve(dir){
returnpath.join(__dirname,dir)
}
functionpublicPath(){
if(process.env.NODE_ENV=='production'){
return"././";
}else{
return"/";
}
}
// vue.config.js
module.exports={
// publicPath:"././",
publicPath:publicPath(),
// 国际化配置 使用其它语言,默认情况下中文语言包依旧是被引入的
configureWebpack:{
// plugins: [
// new webpack.NormalModuleReplacementPlugin(/element-ui[\/\\]lib[\/\\]locale[\/\\]lang[\/\\]zh-CN/, 'element-ui/lib/locale/lang/en')