Skip to content

Commit 9b531e3

Browse files
committed
Docs: Add css-loader example to require option docs
1 parent 4da12a4 commit 9b531e3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/Configuration.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,28 @@ module.exports = {
246246

247247
> **Note:** This will add a separate webpack entry for each array item.
248248
249+
Don’t forget to add webpack loaders for each file you add here. For example, to require a CSS file you’ll need:
250+
251+
```javascript
252+
module.exports = {
253+
webpackConfig: {
254+
module: {
255+
rules: [
256+
{
257+
test: /\.css$/,
258+
use: [
259+
'style-loader',
260+
'css-loader'
261+
]
262+
}
263+
]
264+
}
265+
}
266+
};
267+
```
268+
269+
See [Configuring webpack](Webpack.md) for mode details.
270+
249271
#### `resolver`
250272

251273
Type: `Function`, optional

0 commit comments

Comments
 (0)