Update vue.config.js

This commit is contained in:
Yang Libin 2021-11-23 11:16:24 +08:00 committed by GitHub
parent d54a2af230
commit 19a0b4798e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
module.exports = { module.exports = {
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录 publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
outputDir: process.env.SERVER_ENV === `NETLIFY` ? `./dist/` : `./dist/md/`, // 输出文件目录
css: { css: {
sourceMap: true, sourceMap: true,
}, },