You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Javascript/Typescript and Sass, sometimes you want to be able to share variables defined in stylesheets with your code. This is actually pretty simple with Webpack.
22
25
23
26
First make sure webpack is set up to import scss:
27
+
24
28
```javascript
25
29
// webpack.config.js
26
30
module.exports= {
@@ -41,22 +45,27 @@ module.exports = {
41
45
```
42
46
43
47
## import
48
+
44
49
Now you can import any Bulma variables in your project.
45
50
46
51
You can import every variables using:
52
+
47
53
```javascript
48
54
importvariablesfrom'bulma-variables-export'
49
55
```
50
56
51
57
You can also import specific set of variables using:
0 commit comments