mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-24 04:10:20 +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());
|
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());
|
||||||
|
@ -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: [
|
||||||
{
|
{
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user