Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning authored Apr 21, 2020
1 parent 12b551b commit 977ad68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If you're using at least webpack 5.0.0-beta.15, simply add the following **to th
* this will set the webpack public path to be
* http://localhost:8080/dist/js/
*/
import "systemjs-webpack-interop/src/auto-public-path";
import "systemjs-webpack-interop/auto-public-path";
```

If you need the webpack public path to "chop off" some of the directories in the current module's url, you can specify a "root directory level". Note that the root directory level is read from right-to-left, with `1` indicating "current directory" and `2` indicating "up one directory":
Expand All @@ -56,15 +56,15 @@ If you need the webpack public path to "chop off" some of the directories in the
* this will set the webpack public path to be
* http://localhost:8080/js/
*/
import "systemjs-webpack-interop/src/auto-public-path/2";
import "systemjs-webpack-interop/auto-public-path/2";
```

```js
/* For a module at http://localhost:8080/dist/js/main.js,
* this will set the webpack public path to be
* http://localhost:8080/
*/
import "systemjs-webpack-interop/src/auto-public-path/3";
import "systemjs-webpack-interop/auto-public-path/3";
```

### Older versions of webpack
Expand Down

0 comments on commit 977ad68

Please sign in to comment.