Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit da8686f

Browse files
authored
Updating globals.scss (#960)
A lot of issues talk about global import, if import in vue loader doesn't work, then we can update directly scss and sass.
1 parent 9047cff commit da8686f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/en/using_pre-processors.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@ loaders: {
6868
}
6969
```
7070

71+
In some cases it doesn't work, you may edit `scss` and `sass` directly
72+
73+
```js
74+
{
75+
test: /\.scss$/,
76+
use: ['vue-style-loader', 'css-loader', 'sass-loader?data=@import "./src/renderer/globals";']
77+
},
78+
{
79+
test: /\.sass$/,
80+
use: ['vue-style-loader', 'css-loader', 'sass-loader?data=@import "./src/renderer/globals";']
81+
},
82+
```
83+
7184
#### Use your globals
7285

7386
**SomeComponent.vue**

0 commit comments

Comments
 (0)