Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
9aa1be82
Commit
9aa1be82
authored
Mar 10, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: typo
parent
5b2fbfb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
index.ts
build/vite/plugin/index.ts
+1
-1
styleImport.ts
build/vite/plugin/styleImport.ts
+2
-2
main.ts
src/main.ts
+0
-8
No files found.
build/vite/plugin/index.ts
View file @
9aa1be82
...
...
@@ -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
());
...
...
build/vite/plugin/styleImport.ts
View file @
9aa1be82
...
...
@@ -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
View file @
9aa1be82
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
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment