Commit 9aa1be821be13168026e0a22878b12297349bbd1

Authored by Vben
1 parent 5b2fbfb6

chore: typo

build/vite/plugin/index.ts
... ... @@ -47,7 +47,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
47 47 vitePlugins.push(PurgeIcons());
48 48  
49 49 // vite-plugin-style-import
50   - vitePlugins.push(configStyleImportPlugin(isBuild));
  50 + vitePlugins.push(configStyleImportPlugin());
51 51  
52 52 // rollup-plugin-visualizer
53 53 vitePlugins.push(configVisualizerConfig());
... ...
build/vite/plugin/styleImport.ts
... ... @@ -5,8 +5,8 @@
5 5  
6 6 import styleImport from 'vite-plugin-style-import';
7 7  
8   -export function configStyleImportPlugin(isBuild: boolean) {
9   - if (!isBuild) return [];
  8 +export function configStyleImportPlugin() {
  9 + // if (!isBuild) return [];
10 10 const pwaPlugin = styleImport({
11 11 libs: [
12 12 {
... ...
src/main.ts
1 1 import '/@/design/index.less';
2 2 import '@virtual/windi.css';
3 3  
4   -// Do not introduce on-demand in local development?
5   -// In the local development for on-demand introduction, the number of browser requests will increase by about 20%.
6   -// Which may slow down the browser refresh.
7   -// Therefore, all local development is introduced, and the production environment is introduced on demand
8   -if (import.meta.env.DEV) {
9   - import('ant-design-vue/dist/antd.less');
10   -}
11   -
12 4 import { createApp } from 'vue';
13 5 import App from './App.vue';
14 6  
... ...