Skip to content

Commit

Permalink
Merge pull request gjaldon#38 from BlakeWilliams/bmw-compile-step
Browse files Browse the repository at this point in the history
Replace brunch build with npm deploy script
  • Loading branch information
gjaldon authored Oct 12, 2016
2 parents 4b79470 + 72bd91b commit fddca9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ just before finalizing the build. The `compile` file looks like this:

```bash
info "Building Phoenix static assets"
brunch build --production
npm run deploy
mix phoenix.digest
```

To customize your app's compile hook, just add a `compile` file to your app's root directory.
To customize your app's compile hook, you can either change the `deploy` script in `package.json` or add a `compile` file to your app's root directory.
`compile` is just a shell script, so you can use any valid `bash` code. Keep in mind you'll have
access to your `node_modules` and `mix`. This means that if you're using a Node build tool other than `brunch`, you can just do something like:

Expand Down
2 changes: 1 addition & 1 deletion compile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
brunch build --production
npm run deploy
mix phoenix.digest

0 comments on commit fddca9c

Please sign in to comment.