less哪些文件自动导入 使用绝对路径
const path = require('path')
pluginOptions: {
'style-resources-loader': {
preProcessor: 'less',
patterns: [
path.join(__dirname, './src/assets/styles/variables.less'),
path.join(__dirname, './src/assets/styles/mixins.less'),
],
},
},
修改页面 title
chainWebpack: config => {
config.plugin('html').tap(args => {
args[0].title = '小兔鲜-新鲜、亲民、快捷'
return args
})
},
跳过检查host–这个是给webpack-dev-server开启可IP和域名访问权限–>QQ登陆
devServer: { historyApiFallback: true, allowedHosts: 'all' },
webpack 不做打包
configureWebpack: {
externals: {
qc: 'QC',
},
},
dist index 白屏
dist index 白屏 ‘./’ history 模式 刷新 Cannot GET /XXXX ‘/’
publicPath: './',