Vben
2021-03-10 9aa1be821be13168026e0a22878b12297349bbd1
chore: typo
3个文件已修改
14 ■■■■ 已修改文件
build/vite/plugin/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
build/vite/plugin/styleImport.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
build/vite/plugin/index.ts
@@ -47,7 +47,7 @@
  vitePlugins.push(PurgeIcons());
  // vite-plugin-style-import
  vitePlugins.push(configStyleImportPlugin(isBuild));
  vitePlugins.push(configStyleImportPlugin());
  // rollup-plugin-visualizer
  vitePlugins.push(configVisualizerConfig());
build/vite/plugin/styleImport.ts
@@ -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: [
      {
src/main.ts
@@ -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';