mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +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 = {
|
||||
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
|
||||
configureWebpack: (config) => {
|
||||
@ -8,7 +10,8 @@ module.exports = {
|
||||
}]
|
||||
})
|
||||
},
|
||||
productionSourceMap: !isProd,
|
||||
css: {
|
||||
sourceMap: true,
|
||||
sourceMap: !isProd,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user