From d1ef7a72c6203e4c2f149848cf01d4258c04e1df Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sun, 9 Jul 2023 22:53:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud/bigscreen-design/.env.production | 2 +- cloud/bigscreen-design/vite.config.js | 5 +++++ package.json | 1 - pnpm-lock.yaml | 7 ++----- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cloud/bigscreen-design/.env.production b/cloud/bigscreen-design/.env.production index 272927a..d0b7a20 100644 --- a/cloud/bigscreen-design/.env.production +++ b/cloud/bigscreen-design/.env.production @@ -5,7 +5,7 @@ VITE_APP_ENV = 'production' VITE_APP_API= #页面基础路径 -VITE_APP_BASE=/cloud/bigscreen-design/ +VITE_APP_BASE=/ # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip diff --git a/cloud/bigscreen-design/vite.config.js b/cloud/bigscreen-design/vite.config.js index daebe31..e348950 100755 --- a/cloud/bigscreen-design/vite.config.js +++ b/cloud/bigscreen-design/vite.config.js @@ -23,6 +23,11 @@ export default ({ mode, command }) => { plugins: createVitePlugins(env, command === 'build'), build: { outDir: OUTPUT_DIR + }, + css: { + // 跟主项目的postcss.config.js起冲突,关闭后面需要使用可以在/bigscreen-design加postcss.config.js + // 或者直接在这里配置,优先级 vite.config.js > postcss.config.js + postcss: false } }) } diff --git a/package.json b/package.json index 412addb..e01edb7 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "inquirer": "^8.2.2", "less": "^4.1.2", "picocolors": "^1.0.0", - "postcss": "^8.4.12", "rimraf": "^3.0.2", "rollup": "^2.70.2", "rollup-plugin-visualizer": "^5.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c20bca..d4ddf5f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,7 +57,6 @@ specifiers: path-to-regexp: ^6.2.0 picocolors: ^1.0.0 pinia: ^2.0.13 - postcss: ^8.4.12 print-js: ^1.6.0 qiankun: ^2.10.9 qrcode: ^1.5.0 @@ -154,7 +153,7 @@ devDependencies: '@vitejs/plugin-vue': 2.3.4_vite@2.9.15+vue@3.2.47 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/compiler-sfc': 3.2.47 - autoprefixer: 10.4.14_postcss@8.4.21 + autoprefixer: 10.4.14 conventional-changelog-cli: 2.2.2 cross-env: 7.0.3 dotenv: 16.0.3 @@ -166,7 +165,6 @@ devDependencies: inquirer: 8.2.5 less: 4.1.3 picocolors: 1.0.0 - postcss: 8.4.21 rimraf: 3.0.2 rollup: 2.72.0 rollup-plugin-visualizer: 5.9.0_rollup@2.72.0 @@ -2724,7 +2722,7 @@ packages: hasBin: true dev: true - /autoprefixer/10.4.14_postcss@8.4.21: + /autoprefixer/10.4.14: resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==} engines: {node: ^10 || ^12 || >=14} hasBin: true @@ -2736,7 +2734,6 @@ packages: fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 - postcss: 8.4.21 postcss-value-parser: 4.2.0 dev: true