Skip to content

Commit 87af978

Browse files
josefaidtjonathantneal
authored andcommitted
add ~ to CSS import
Without the tilde, webpack will not know to look in `node_modules`, and instead will look for a file relative to the Sass file. `@import "~sanitize.css/sanitize.css";` works as well
1 parent d479d89 commit 87af978

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ see https://cdnjs.com/libraries/10up-sanitize.css
2626
in CSS (or LESS/SCSS/Stylus)
2727

2828
```css
29-
@import 'sanitize.css';
29+
@import '~sanitize.css';
3030
```
3131

3232
or in javascript:

0 commit comments

Comments
 (0)