chore: typo

This commit is contained in:
Vben 2021-03-10 00:05:27 +08:00
parent 5b2fbfb6ce
commit 9aa1be821b
3 changed files with 3 additions and 11 deletions

View File

@ -47,7 +47,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
vitePlugins.push(PurgeIcons()); vitePlugins.push(PurgeIcons());
// vite-plugin-style-import // vite-plugin-style-import
vitePlugins.push(configStyleImportPlugin(isBuild)); vitePlugins.push(configStyleImportPlugin());
// rollup-plugin-visualizer // rollup-plugin-visualizer
vitePlugins.push(configVisualizerConfig()); vitePlugins.push(configVisualizerConfig());

View File

@ -5,8 +5,8 @@
import styleImport from 'vite-plugin-style-import'; import styleImport from 'vite-plugin-style-import';
export function configStyleImportPlugin(isBuild: boolean) { export function configStyleImportPlugin() {
if (!isBuild) return []; // if (!isBuild) return [];
const pwaPlugin = styleImport({ const pwaPlugin = styleImport({
libs: [ libs: [
{ {

View File

@ -1,14 +1,6 @@
import '/@/design/index.less'; import '/@/design/index.less';
import '@virtual/windi.css'; 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 { createApp } from 'vue';
import App from './App.vue'; import App from './App.vue';