mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
chore: turn off source map at production env (#122)
This commit is contained in:
parent
a5da935e6c
commit
0e3ae492cf
@ -1,3 +1,5 @@
|
|||||||
|
const isProd = process.env.NODE_ENV === `production`
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
|
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
|
||||||
configureWebpack: (config) => {
|
configureWebpack: (config) => {
|
||||||
@ -8,7 +10,8 @@ module.exports = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
productionSourceMap: !isProd,
|
||||||
css: {
|
css: {
|
||||||
sourceMap: true,
|
sourceMap: !isProd,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user