Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vuetransfomer): fix unknown asset language for vue scripts/templa… (
#7056) * fix(vuetransfomer): fix unknown asset language for vue scripts/templates/styles * test: loading external files from vue sfcs Co-authored-by: Jasper De Moor <jasperdemoor@gmail.com>
- Loading branch information
1 parent
674539e
commit 85b76e8
Showing
6 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/vue-external-files/App.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template src="./main.pug"></template> | ||
<style src="./style.scss"></style> | ||
<script src="./script.ts"></script> |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/vue-external-files/main.pug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
div | ||
h1 foo | ||
h2 bar | ||
div.box | ||
p {{ msg }} |
7 changes: 7 additions & 0 deletions
7
packages/core/integration-tests/test/integration/vue-external-files/script.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
data () { | ||
return { | ||
msg: 'Hello World' | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
packages/core/integration-tests/test/integration/vue-external-files/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$cool-color: #c0ff33; | ||
|
||
div { | ||
h1 { | ||
color: red; | ||
} | ||
} | ||
|
||
h2 { | ||
color: blue; | ||
|
||
&:hover { | ||
color: $cool-color; | ||
} | ||
} | ||
|
||
.box { | ||
border: 1px solid black; | ||
|
||
p { | ||
color: $cool-color; | ||
font-size: 10rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters