From f01e52a415f6d284e4c59314801b394a3bc55ad9 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 16 Feb 2023 15:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=BB=93=E6=9E=84,=20=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E4=B8=8Evite=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 5 ++++- lib/demo-config.js | 9 +++++---- package.json | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index d6fdd3c..a3dcf3c 100755 --- a/index.js +++ b/index.js @@ -165,7 +165,10 @@ function printHelp() { writeHtmlFile(join(targetDir, 'index.html')) writeLogo(join(targetDir, 'src/assets/logo.svg')) - fs.cp(join(root, 'lib/favicon.ico'), join(targetDir, 'src/favicon.ico')) + fs.cp( + join(root, 'lib/favicon.ico'), + join(targetDir, 'public/favicon.ico') + ) console.log('[oooooc----]', '60%') diff --git a/lib/demo-config.js b/lib/demo-config.js index 58c0d2e..a5fa567 100644 --- a/lib/demo-config.js +++ b/lib/demo-config.js @@ -58,10 +58,11 @@ export default { // 也可以在页面中直接引入完整的路径, 而不必须在这里声明 imports: { vue: '//jscdn.ink/vue/3.2.47/vue.esm-browser.prod.js', - 'vue-router': '//jscdn.ink/vue-router/4.1.6/vue-router.esm-browser.js', - // 这个库被vue-router依赖, 可以注释掉vue-router代码中的 @vue/devtools-api 的引入 - // 以达到减少不必须的体积的效果 - '@vue/devtools-api': '//jscdn.ink/@vue/devtools-api/6.5.0/esm/index.js', + // 这个vue-router库, 移除了 @vue/devtools-api 相关的代码。 以达到减少不必须的体积的效果 + // 如需要支持devtools的, 请修改为原版vue-router地址即可。 + 'vue-router': '//jscdn.ink/@bytedo/vue-router/4.1.6/vue-router.js', + // 'vue-router': '//jscdn.ink/vue-router/4.1.6/vue-router.esm-browser.js', + // '@vue/devtools-api': '//jscdn.ink/@vue/devtools-api/6.5.0/esm/index.js', fetch: '//jscdn.ink/@bytedo/fetch/2.1.1/next.js' } } diff --git a/package.json b/package.json index 866b72f..04ab983 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-vue-live", "type": "module", - "version": "1.0.3", + "version": "1.0.4", "bin": { "create-vue-live": "index.js" },