Skip to content

Commit

Permalink
chore: turn off source map at production env (doocs#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary authored Jan 27, 2022
1 parent a5da935 commit 0e3ae49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const isProd = process.env.NODE_ENV === `production`

module.exports = {
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
configureWebpack: (config) => {
Expand All @@ -8,7 +10,8 @@ module.exports = {
}]
})
},
productionSourceMap: !isProd,
css: {
sourceMap: true,
sourceMap: !isProd,
},
}

0 comments on commit 0e3ae49

Please sign in to comment.