We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0169caa commit ef9c590Copy full SHA for ef9c590
src/v2/guide/deployment.md
@@ -61,6 +61,29 @@ module.exports = {
61
)
62
.bundle()
63
```
64
+
65
+- Or, using [envify](https://github.com/hughsk/envify) with Grunt and [grunt-browserify](https://github.com/jmreidy/grunt-browserify):
66
67
+ ``` js
68
+ // Use the envify custom module to specify environment variables
69
+ var envify = require('envify/custom')
70
71
+ browserify: {
72
+ dist: {
73
+ options: {
74
+ // Function to deviate from grunt-browserify's default order
75
+ configure: b => b
76
+ .transform('vueify')
77
+ .transform(
78
+ // Required in order to process node_modules files
79
+ { global: true },
80
+ envify({ NODE_ENV: 'production' })
81
+ )
82
+ .bundle()
83
+ }
84
85
86
+ ```
87
88
#### Rollup
89
0 commit comments