Skip to content

Commit

Permalink
Merge pull request #121 from augbog/task/update-readme-issue-109
Browse files Browse the repository at this point in the history
Updated README regarding relative filepaths issue
  • Loading branch information
jhnns authored Dec 23, 2016
2 parents e8f1432 + c00b4e3 commit 470c346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ webpack provides an [advanced mechanism to resolve files](http://webpack.github.

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 less-files have no special syntax for importing relative files. Writing `@import "file"` is the same as `@import "./file";`

Also please note that for [CSS modules](https://github.com/css-modules/css-modules), relative file paths do not work as expected. Please see [this issue for the explanation](https://github.com/webpack/less-loader/issues/109#issuecomment-253797335).

## Source maps

Because of browser limitations, source maps are only available in conjunction with the [extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin). Use that plugin to extract the CSS code from the generated JS bundle into a separate file (which even improves the perceived performance because JS and CSS are loaded in parallel).
Expand Down

0 comments on commit 470c346

Please sign in to comment.