File tree Expand file tree Collapse file tree 6 files changed +594
-44
lines changed Expand file tree Collapse file tree 6 files changed +594
-44
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default {
31
31
] ,
32
32
33
33
// Modules: https://go.nuxtjs.dev/config-modules
34
- modules : [ ] ,
34
+ modules : [ "@nuxtjs/style-resources" ] ,
35
35
36
36
// Build Configuration: https://go.nuxtjs.dev/config-build
37
37
build : {
Original file line number Diff line number Diff line change 35
35
"@nuxt/typescript-build" : " ^2.0.4" ,
36
36
"@nuxtjs/eslint-config-typescript" : " ^5.0.0" ,
37
37
"@nuxtjs/eslint-module" : " ^3.0.2" ,
38
+ "@nuxtjs/style-resources" : " ^1.0.0" ,
38
39
"@nuxtjs/stylelint-module" : " ^4.0.0" ,
39
40
"@vue/test-utils" : " ^1.1.2" ,
40
41
"babel-core" : " 7.0.0-bridge.0" ,
48
49
"husky" : " ^4.3.8" ,
49
50
"jest" : " ^26.6.3" ,
50
51
"lint-staged" : " ^10.5.3" ,
52
+ "node-sass" : " 4.14.1" ,
51
53
"prettier" : " ^2.2.1" ,
52
54
"pretty-quick" : " ^3.1.0" ,
55
+ "sass-loader" : " 7.3.1" ,
53
56
"stylelint" : " ^13.9.0" ,
54
57
"stylelint-config-prettier" : " ^8.0.2" ,
55
58
"stylelint-config-standard" : " ^20.0.0" ,
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >
3
+ <h1 class =" about" >about页面</h1 >
4
+ <nuxt-link to =" /" >/toIndex</nuxt-link >
5
+ <nuxt-link to =" /my" >/my</nuxt-link >
6
+ </div >
7
+ </template >
8
+
9
+ <script lang="ts">
10
+ import Vue from " vue" ;
11
+ export default Vue .extend ({});
12
+ </script >
13
+
14
+ <style scoped>
15
+ .about {
16
+ color : red ;
17
+ }
18
+ </style >
Original file line number Diff line number Diff line change 4
4
<Logo />
5
5
<h1 class =" title" >test-nuxt-app</h1 >
6
6
<div class =" links" >
7
- <a
8
- href =" https://nuxtjs.org/"
9
- target =" _blank"
10
- rel =" noopener noreferrer"
11
- class =" button--green"
12
- >
13
- Documentation
14
- </a >
15
- <a
16
- href =" https://github.com/nuxt/nuxt.js"
17
- target =" _blank"
18
- rel =" noopener noreferrer"
19
- class =" button--grey"
20
- >
21
- GitHub
22
- </a >
7
+ <nuxt-link to =" /about" >/about</nuxt-link >
8
+ <nuxt-link to =" /my" >/my</nuxt-link >
23
9
</div >
24
10
</div >
25
11
</div >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >
3
+ <h1 class =" about" >my页面</h1 >
4
+ <nuxt-link to =" /" >/toIndex</nuxt-link >
5
+ <nuxt-link to =" /about" >/about</nuxt-link >
6
+ </div >
7
+ </template >
8
+
9
+ <script lang="ts">
10
+ import Vue from " vue" ;
11
+ export default Vue .extend ({});
12
+ </script >
13
+
14
+ <style lang="scss" scoped>
15
+ .about {
16
+ color : red ;
17
+ }
18
+ </style >
You can’t perform that action at this time.
0 commit comments