diff --git a/README.md b/README.md index dbce0e7b..549a7951 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ module.exports = { // both options are optional filename: "[name].css", chunkFilename: "[id].css", - hot: true, // optional as the plugin cannot automatically detect if you are using HOT, not for production use + hot: true, // if you want HMR - we try to automatically inject hot reloading but if it's not working, add it to the config orderWarning: true, // Disable to remove warnings about conflicting order between imports reloadAll: true, // when desperation kicks in - this is a brute force HMR flag cssModules: true // if you use cssModules, this can help. diff --git a/index.d.ts b/index.d.ts index 8b273f06..39ae31ce 100644 --- a/index.d.ts +++ b/index.d.ts @@ -18,6 +18,8 @@ declare module 'extract-css-chunks-webpack-plugin' { * we try to automatically inject hot reloading, but if it's not working, use this config */ hot?: boolean; + reloadAll?: boolean; + cssModules?: boolean; } }