Skip to content

Commit 9d27799

Browse files
authored
Merge pull request #228 from eastwood/patch-1
Update README information
2 parents 989ba0e + 8a5d964 commit 9d27799

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ module.exports = {
9494
webpack provides an [advanced mechanism to resolve files](http://webpack.github.io/docs/resolving.html). The sass-loader uses node-sass' custom importer feature to pass all queries to the webpack resolving engine. Thus you can import your Sass modules from `node_modules`. Just prepend them with a `~` to tell webpack that this is not a relative import:
9595

9696
```css
97-
@import "~bootstrap/less/bootstrap";
97+
@import "~bootstrap/css/bootstrap";
98+
```
99+
100+
Alternatively, for bootstrap-sass:
101+
```css
102+
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
98103
```
99104

100105
It's important to only prepend it with `~`, because `~/` resolves to the home directory. webpack needs to distinguish between `bootstrap` and `~bootstrap` because CSS- and Sass-files have no special syntax for importing relative files. Writing `@import "file"` is the same as `@import "./file";`

0 commit comments

Comments
 (0)