diff --git a/README.md b/README.md index e733d08..9330630 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/compile b/compile index f701e14..255da7d 100644 --- a/compile +++ b/compile @@ -1,2 +1,2 @@ -brunch build --production +npm run deploy mix phoenix.digest