Skip to content

Commit

Permalink
Update deployment.md with Grunt example (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangrund authored and chrisvfritz committed Jan 10, 2018
1 parent 0169caa commit ef9c590
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/v2/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,29 @@ module.exports = {
)
.bundle()
```

- Or, using [envify](https://github.com/hughsk/envify) with Grunt and [grunt-browserify](https://github.com/jmreidy/grunt-browserify):

``` js
// Use the envify custom module to specify environment variables
var envify = require('envify/custom')

browserify: {
dist: {
options: {
// Function to deviate from grunt-browserify's default order
configure: b => b
.transform('vueify')
.transform(
// Required in order to process node_modules files
{ global: true },
envify({ NODE_ENV: 'production' })
)
.bundle()
}
}
}
```

#### Rollup

Expand Down

0 comments on commit ef9c590

Please sign in to comment.