Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Mar 9, 2021
1 parent 5b2fbfb commit 9aa1be8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/vite/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
vitePlugins.push(PurgeIcons());

// vite-plugin-style-import
vitePlugins.push(configStyleImportPlugin(isBuild));
vitePlugins.push(configStyleImportPlugin());

// rollup-plugin-visualizer
vitePlugins.push(configVisualizerConfig());
Expand Down
4 changes: 2 additions & 2 deletions build/vite/plugin/styleImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import styleImport from 'vite-plugin-style-import';

export function configStyleImportPlugin(isBuild: boolean) {
if (!isBuild) return [];
export function configStyleImportPlugin() {
// if (!isBuild) return [];
const pwaPlugin = styleImport({
libs: [
{
Expand Down
8 changes: 0 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import '/@/design/index.less';
import '@virtual/windi.css';

// Do not introduce on-demand in local development?
// In the local development for on-demand introduction, the number of browser requests will increase by about 20%.
// Which may slow down the browser refresh.
// Therefore, all local development is introduced, and the production environment is introduced on demand
if (import.meta.env.DEV) {
import('ant-design-vue/dist/antd.less');
}

import { createApp } from 'vue';
import App from './App.vue';

Expand Down

0 comments on commit 9aa1be8

Please sign in to comment.