Skip to content

Commit ee15791

Browse files
NilosScriptedAlchemy
authored andcommitted
Add reloadAll and cssModules to typings (#115)
* docs(readme): Tone of Voice clairification on what hot:true does (#113) * Add reloadAll and cssModules to typings
1 parent 9f27f1e commit ee15791

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = {
9090
// both options are optional
9191
filename: "[name].css",
9292
chunkFilename: "[id].css",
93-
hot: true, // optional as the plugin cannot automatically detect if you are using HOT, not for production use
93+
hot: true, // if you want HMR - we try to automatically inject hot reloading but if it's not working, add it to the config
9494
orderWarning: true, // Disable to remove warnings about conflicting order between imports
9595
reloadAll: true, // when desperation kicks in - this is a brute force HMR flag
9696
cssModules: true // if you use cssModules, this can help.

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ declare module 'extract-css-chunks-webpack-plugin' {
1818
* we try to automatically inject hot reloading, but if it's not working, use this config
1919
*/
2020
hot?: boolean;
21+
reloadAll?: boolean;
22+
cssModules?: boolean;
2123
}
2224
}
2325

0 commit comments

Comments
 (0)