Skip to content

Commit a74132b

Browse files
committed
Adds support for scss.
2 parents e62e413 + b867593 commit a74132b

File tree

6 files changed

+1826
-15
lines changed

6 files changed

+1826
-15
lines changed

VueComponent.vue

+11-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,18 @@ export default {
1212
}
1313
</script>
1414

15-
<style type="text/css">
15+
<!--
16+
<style type="text/css" scoped>
1617
label {
1718
color: red;
1819
}
20+
</style>
21+
-->
22+
23+
<style lang="scss" scoped>
24+
$red: red;
25+
26+
label {
27+
color: $red;
28+
}
1929
</style>

app.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const http = require("http")
44
import JsComponent from './JsComponent';
55
import VueComponent from './VueComponent';
66

7+
import './app.scss'
8+
79
Vue.prototype.$http = http
810

911
new Vue({

app.scss

+5
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)