mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
chore: typo
This commit is contained in:
parent
5b2fbfb6ce
commit
9aa1be821b
@ -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());
|
||||
|
@ -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: [
|
||||
{
|
||||
|
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user