diff options
author | Jonathan Neal <jonathantneal@hotmail.com> | 2018-08-22 11:46:05 -0400 |
---|---|---|
committer | Jonathan Neal <jonathantneal@hotmail.com> | 2018-08-22 11:46:05 -0400 |
commit | 29635a0681f5558981f27e8fa039f0fb883bd720 (patch) | |
tree | 67acd6e700150fb4cdf016c4efb71157fae441eb | |
parent | b8ce2501aff91a77fccd54b04a673cc4c7e1972d (diff) | |
download | normalize.css-29635a0681f5558981f27e8fa039f0fb883bd720.tar.gz normalize.css-29635a0681f5558981f27e8fa039f0fb883bd720.zip |
Update README.md to improve installation instructions
-rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 |