Skip to content

Commit f93c73f

Browse files
chukitowmichael-ciniawsky
authored andcommittedMay 9, 2017
docs(README): change bootstrap path in example (#438)
1 parent ca396ea commit f93c73f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module.exports = {
120120
webpack provides an [advanced mechanism to resolve files](https://webpack.js.org/concepts/module-resolution/). 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:
121121

122122
```css
123-
@import "~bootstrap/css/bootstrap";
123+
@import "~bootstrap/dist/css/bootstrap";
124124
```
125125

126126
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)
Please sign in to comment.