Skip to content

Commit cb363d9

Browse files
Rail-ZongZizhongzi-rail0039
authored andcommitted
在一个scss文件引入另一个scss配置:importLoaders
1 parent ffd58fe commit cb363d9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,20 @@
7676

7777
- 使用一些样式预编译样式,比如: `less` , `scss`, `stylus` 等 同时就需要配置一些单独的样式插件进行
7878

79+
- 一个样式文件中引入另一个样式文件 比如: `a.scss` 中引入 `b.scss` 配置,通过 `import` 引入的 `scss` 文件设置需要执行下面文件
80+
81+
```javascript
82+
use: [
83+
'style-loader',
84+
{
85+
loader: 'css-loader',
86+
options: {
87+
importLoaders: 2
88+
}
89+
},
90+
'sass-loader',
91+
'postcss-loader'
92+
]
93+
```
94+
7995

0 commit comments

Comments
 (0)