File tree Expand file tree Collapse file tree 3 files changed +16
-19
lines changed Expand file tree Collapse file tree 3 files changed +16
-19
lines changed Original file line number Diff line number Diff line change
1
+ // 此文件不支持热更新,修改后需要重启生效
2
+ export default {
3
+ plugins : {
4
+ 'autoprefixer' : { } ,
5
+
6
+ // https://github.com/wswmsword/postcss-mobile-forever
7
+ 'postcss-mobile-forever' : {
8
+ appSelector : '#app' ,
9
+ viewportWidth : 375 ,
10
+ maxDisplayWidth : 600 ,
11
+ appContainingBlock : 'auto' ,
12
+ border : true ,
13
+ } ,
14
+ } ,
15
+ }
Original file line number Diff line number Diff line change 2
2
// @ts -nocheck
3
3
// Generated by unplugin-vue-components
4
4
// Read more: https://github.com/vuejs/core/pull/3399
5
+ // biome-ignore lint: disable
5
6
export { }
6
7
7
8
/* prettier-ignore */
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import path from 'node:path'
2
2
import process from 'node:process'
3
3
import { loadEnv } from 'vite'
4
4
import type { ConfigEnv , UserConfig } from 'vite'
5
- import viewport from 'postcss-mobile-forever'
6
- import autoprefixer from 'autoprefixer'
7
5
import { createVitePlugins } from './build/vite'
8
6
import { exclude , include } from './build/vite/optimize'
9
7
@@ -29,29 +27,12 @@ export default ({ mode }: ConfigEnv): UserConfig => {
29
27
30
28
resolve : {
31
29
alias : {
32
- '~@' : path . join ( __dirname , './src' ) ,
33
30
'@' : path . join ( __dirname , './src' ) ,
34
31
'~' : path . join ( __dirname , './src/assets' ) ,
35
32
'~root' : path . join ( __dirname , '.' ) ,
36
33
} ,
37
34
} ,
38
35
39
- css : {
40
- postcss : {
41
- plugins : [
42
- autoprefixer ( ) ,
43
- // https://github.com/wswmsword/postcss-mobile-forever
44
- viewport ( {
45
- appSelector : '#app' ,
46
- viewportWidth : 375 ,
47
- maxDisplayWidth : 600 ,
48
- appContainingBlock : 'auto' ,
49
- border : true ,
50
- } ) ,
51
- ] ,
52
- } ,
53
- } ,
54
-
55
36
build : {
56
37
cssCodeSplit : false ,
57
38
chunkSizeWarningLimit : 2048 ,
You can’t perform that action at this time.
0 commit comments