Closed bibiuc closed 6 years ago
可以修改 publichPath 来解决这个问题。
module.exports = {
plugins: ['qunar'],
config: {
exports: ['./scripts/app.js'],
modifyWebpackConfig: function(baseConfig) {
// local dev prd
config.output.local = Object.assign(config.output.prd, {
publichPath: '/'
});
return baseConfig;
}
}
};
Closed due to inactivity. Feel free to reopen if the problem still exists.
导致局域网环境下无法热更新