Skip to content

Commit

Permalink
add missing dependency to webpack instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
vdel26 committed Apr 28, 2016
1 parent ba0503c commit 7cd8c52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ The gem also provides server-side support for Turbolinks redirection.
Your application can use the [`turbolinks` npm package](https://www.npmjs.com/package/turbolinks) to install Turbolinks in a [Webpack](http://webpack.github.io/) asset bundle.

1. Add the `turbolinks` package to your application: `npm install --save turbolinks`.
2. Add `turbolinks` to the `entry` section of webpack.config.js:
2. Install the [imports loader](https://github.com/webpack/imports-loader) module for webpack: `npm install --save imports-loader`.
3. Add `turbolinks` to the `entry` section of webpack.config.js:

```js
entry: {
Expand All @@ -44,7 +45,7 @@ Your application can use the [`turbolinks` npm package](https://www.npmjs.com/pa
},
```

3. Set up Turbolinks in the `module.loaders` section of webpack.config.js:
4. Set up Turbolinks in the `module.loaders` section of webpack.config.js:

```js
module: {
Expand Down

0 comments on commit 7cd8c52

Please sign in to comment.