增加source map导出到dev的相关配置
This commit is contained in:
parent
ff61a47e39
commit
05f408f74d
@ -42,6 +42,7 @@
|
|||||||
"eslint-plugin-vue": "^8.0.3",
|
"eslint-plugin-vue": "^8.0.3",
|
||||||
"sass": "^1.32.7",
|
"sass": "^1.32.7",
|
||||||
"sass-loader": "^12.0.0",
|
"sass-loader": "^12.0.0",
|
||||||
|
"source-map-loader": "^5.0.0",
|
||||||
"vue-template-compiler": "^2.6.14"
|
"vue-template-compiler": "^2.6.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,15 @@ module.exports = defineConfig({
|
|||||||
lintOnSave: false,
|
lintOnSave: false,
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
|
chainWebpack: (config) => {
|
||||||
|
config.module
|
||||||
|
.rule("source-map-loader")
|
||||||
|
.test(/\.js$/)
|
||||||
|
.enforce("pre")
|
||||||
|
.use("source-map-loader")
|
||||||
|
.loader("source-map-loader")
|
||||||
|
.end();
|
||||||
|
},
|
||||||
// devServer: {
|
// devServer: {
|
||||||
// open: false,
|
// open: false,
|
||||||
// // host: '0.0.0.0', // 允许外部ip访问
|
// // host: '0.0.0.0', // 允许外部ip访问
|
||||||
|
Loading…
x
Reference in New Issue
Block a user