aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJonathan Neal <jonathantneal@hotmail.com>2018-08-22 11:46:05 -0400
committerJonathan Neal <jonathantneal@hotmail.com>2018-08-22 11:46:05 -0400
commit29635a0681f5558981f27e8fa039f0fb883bd720 (patch)
tree67acd6e700150fb4cdf016c4efb71157fae441eb
parentb8ce2501aff91a77fccd54b04a673cc4c7e1972d (diff)
downloadnormalize.css-29635a0681f5558981f27e8fa039f0fb883bd720.tar.gz
normalize.css-29635a0681f5558981f27e8fa039f0fb883bd720.zip
Update README.md to improve installation instructions
-rw-r--r--README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/README.md b/README.md
index 54dd56c..4de112b 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,35 @@ default styling of HTML elements.
npm install --save @csstools/normalize.css
```
+### Usage in npm and webpack
+
+Import [normalize.css] in CSS:
+
+```css
+@import '~@csstools/normalize.css';
+```
+
+Alternatively, import [normalize.css] in JS:
+
+```js
+import '@csstools/normalize.css';
+```
+
+In `webpack.config.js`, be sure to use the appropriate loaders:
+
+```js
+module.exports = {
+ module: {
+ rules: [
+ {
+ test: /\.css$/,
+ use: [ 'style-loader', 'css-loader' ]
+ }
+ ]
+ }
+}
+```
+
**Download**
See https://csstools.github.io/normalize.css/latest/normalize.css