Skip to content

Commit 94ee96e

Browse files
feat(readme): Documenting new options that have been added (#112)
* feat(readme): Documenting new options that have been added Cods on cssModules, reloadAll, hot, and so on * chore: Adding standard-version to help with releases CI stuff to help release go smoother
1 parent b01c99a commit 94ee96e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ module.exports = {
9292
chunkFilename: "[id].css",
9393
hot: true, // optional as the plugin cannot automatically detect if you are using HOT, not for production use
9494
orderWarning: true, // Disable to remove warnings about conflicting order between imports
95+
reloadAll: true, // when desperation kicks in - this is a brute force HMR flag
96+
cssModules: true // if you use cssModules, this can help.
9597
}
9698
),
9799
]
@@ -195,7 +197,7 @@ module.exports = {
195197
}
196198
},
197199
plugins: [
198-
new ExtractCssChunks({hot:true}), //if you want HMR - we try to automatically inject hot reloading but if it's not working, add it to the config
200+
new ExtractCssChunks({hot:true, cssModules: true}), //if you want HMR - we try to automatically inject hot reloading but if it's not working, add it to the config
199201
]
200202
};
201203
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"nsp": "^3.1.0",
8989
"pre-commit": "^1.2.2",
9090
"prettier": "^1.11.1",
91-
"standard-version": "^4.3.0",
91+
"standard-version": "^4.4.0",
9292
"webpack": "4.8.3",
9393
"webpack-cli": "^2.0.13",
9494
"webpack-dev-server": "^3.1.1"

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7810,7 +7810,7 @@ stack-utils@^1.0.1:
78107810
version "1.0.1"
78117811
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620"
78127812

7813-
standard-version@^4.3.0:
7813+
standard-version@^4.4.0:
78147814
version "4.4.0"
78157815
resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-4.4.0.tgz#99de7a0709e6cafddf9c5984dd342c8cfe66e79f"
78167816
dependencies:

0 commit comments

Comments
 (0)