Skip to content
Permalink
Browse files

Update installation instructions for npm users.

  • Loading branch information...
andrewmurph committed Mar 4, 2019
1 parent c8a8d40 commit 6b9857ad52720fb1a5b567dae3c9d9d449dc7ea8
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.md
@@ -75,9 +75,10 @@ or
yarn
```

Given we have linked the `react-phoenix` javascript dependency locally from your
Phoenix project's `deps` folder, we should add webpack aliases for react and react-dom
to your `assets/webpack.config.js`:
#### `npm` users
`npm` unfortunately needs an extra bit of configuration to make it happy. Add the following block to your
`assets/webpack.config.js` file. If you use `yarn` to manage your dependencies, this extra bit of
configuration should not be necessary.

```js
module.exports = (env, options) => ({

0 comments on commit 6b9857a

Please sign in to comment.
You can’t perform that action at this time.