Skip to content

Commit ee9e8dd

Browse files
committed
fix css/sass extract
1 parent abec1cf commit ee9e8dd

File tree

6 files changed

+1809
-16
lines changed

6 files changed

+1809
-16
lines changed

VueComponent.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@ export default {
1111
}
1212
}
1313
</script>
14-
15-
<style type="text/css">
14+
<!--
15+
<style type="text/css" scoped>
1616
label{
1717
color: red;
1818
}
19+
</style>
20+
-->
21+
22+
<style lang="scss" scoped>
23+
$red : red;
24+
25+
label{
26+
color: $red;
27+
}
1928
</style>

app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const http = require("http")
77
import JsComponent from './JsComponent';
88
import VueComponent from './VueComponent';
99

10+
import './app.scss'
11+
1012
Vue.prototype.$http = http
1113

1214
new Vue({

app.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$main-color : blue;
2+
3+
label{
4+
color : $main-color;
5+
}

0 commit comments

Comments
 (0)