From 070902093a4f2b3c6109021739b0abf030dcb992 Mon Sep 17 00:00:00 2001 From: jimqing Date: Sun, 28 Feb 2021 16:43:20 +0800 Subject: [PATCH] fix: publicPath --- vue.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index cdb266e..21ee4ac 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,8 +7,7 @@ function writeManifestJson() { const strData = data.toString(); const manifest = JSON.parse(strData); - manifest.h5.publicPath = - process.env.SERVER_ENV !== "NETLIFY" ? "/md/" : "/"; + manifest.h5.publicPath = process.env.SERVER_ENV !== "NETLIFY" ? "/md/" : "/"; const result = JSON.stringify(manifest, null, 2); fs.writeFile("./src/manifest.json", result, function (err) { @@ -18,4 +17,3 @@ function writeManifestJson() { }); }); } -writeManifestJson();