Skip to content

Commit 8b9f3f1

Browse files
committed
Update README.md to improve installation instructions
1 parent b5dbabc commit 8b9f3f1

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,21 @@ See https://csstools.github.io/sanitize.css/latest/sanitize.css
1919

2020
see https://cdnjs.com/libraries/10up-sanitize.css
2121

22-
## How to use it (NPM + WebPack)
22+
### Usage in npm and webpack
2323

24-
**Import the package**
25-
26-
in CSS (or LESS/SCSS/Stylus)
24+
Import [sanitize.css] in CSS:
2725

2826
```css
2927
@import '~sanitize.css';
3028
```
3129

32-
or in javascript:
30+
Alternatively, import [sanitize.css] in JS:
3331

3432
```js
3533
import 'sanitize.css';
3634
```
3735

38-
minimally required `webpack.config.js`:
36+
In `webpack.config.js`, be sure to use the appropriate loaders:
3937

4038
```js
4139
module.exports = {

0 commit comments

Comments
 (0)