Skip to content

Commit 30d46ff

Browse files
visualfanatichaoqunjiang
authored andcommitted
refactor: automatically inject @/style/imports using import option provided by stylus loader (vuejs#2515)
1 parent 9357a60 commit 30d46ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+10
-115
lines changed

packages/@vue/cli-ui/src/App.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export default {
3434
</style>
3535

3636
<style lang="stylus" scoped>
37-
@import "~@/style/imports"
38-
3937
.app
4038
display flex
4139
flex-direction column

packages/@vue/cli-ui/src/components/ClientAddonComponent.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export default {
3939
</script>
4040

4141
<style lang="stylus" scoped>
42-
@import "~@/style/imports"
43-
4442
.loading
4543
v-box()
4644
box-center()

packages/@vue/cli-ui/src/components/ConfigurationItem.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ export default {
3838
</script>
3939

4040
<style lang="stylus" scoped>
41-
@import "~@/style/imports"
42-
4341
.configuration-item
4442
padding $padding-item
4543

packages/@vue/cli-ui/src/components/ConnectionStatus.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export default {
3131
</script>
3232

3333
<style lang="stylus" scoped>
34-
@import "~@/style/imports"
35-
3634
.content
3735
display flex
3836
align-items center

packages/@vue/cli-ui/src/components/ContentView.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export default {
2525
</script>
2626

2727
<style lang="stylus" scoped>
28-
@import "~@/style/imports"
29-
3028
.content-view
3129
height 100%
3230

packages/@vue/cli-ui/src/components/FileDiff.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ export default {
103103
</script>
104104

105105
<style lang="stylus" scoped>
106-
@import "~@/style/imports"
107-
108106
status-color($color)
109107
.name
110108
color $color

packages/@vue/cli-ui/src/components/FileDiffChange.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ export default {
7676
</script>
7777

7878
<style lang="stylus" scoped>
79-
@import "~@/style/imports"
80-
8179
.file-diff-change
8280
font-family $font-mono
8381
font-size 12px

packages/@vue/cli-ui/src/components/FileDiffChunk.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export default {
2222
</script>
2323

2424
<style lang="stylus" scoped>
25-
@import "~@/style/imports"
26-
2725
.file-diff-chunk
2826
.changes
2927
overflow-x auto

packages/@vue/cli-ui/src/components/FileDiffView.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ export default {
247247
</script>
248248

249249
<style lang="stylus" scoped>
250-
@import "~@/style/imports"
251-
252250
.file-diff-view
253251
v-box()
254252
height 100%

packages/@vue/cli-ui/src/components/FolderExplorer.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ export default {
399399
</script>
400400

401401
<style lang="stylus" scoped>
402-
@import "~@/style/imports"
403-
404402
.toolbar
405403
padding $padding-item 0
406404
h-box()

0 commit comments

Comments
 (0)