Skip to content

Commit 3ea7666

Browse files
docs(README): Updating README
New docs on implementation, API, Reasons for updateing. Currently a WIP
1 parent 3468910 commit 3ea7666

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,22 @@ module.exports = {
6868
rules: [
6969
{
7070
test: /\.css$/,
71-
use: ExtractCssChunks.extract({
72-
use: {
73-
loader: 'css-loader',
74-
options: {
75-
modules: true,
76-
localIdentName: '[name]__[local]--[hash:base64:5]'
77-
}
78-
}
79-
})
71+
use: [
72+
ExtractCssChunks.loader,
73+
"css-loader"
74+
]
8075
}
8176
]
8277
},
8378
plugins: [
84-
new ExtractCssChunks(),
79+
new ExtractCssChunks(
80+
{
81+
// Options similar to the same options in webpackOptions.output
82+
// both options are optional
83+
filename: "[name].css",
84+
chunkFilename: "[id].css"
85+
}
86+
),
8587
]
8688
}
8789
```

0 commit comments

Comments
 (0)