You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
If you are using npm 3+, it no longer auto install the peer dependencies. So you will also have to do:
70
+
If you are using npm 3+, it no longer auto install the peer dependencies. So you will also have to also install the babel-related dependencies:
71
71
72
72
```bash
73
73
npm install\
74
-
vueify-insert-css vue-hot-reload-api\
75
-
babel-core babel-preset-es2015\
76
-
babel-plugin-transform-runtime babel-runtime@5\
74
+
babel-core\
75
+
babel-preset-es2015\
76
+
babel-runtime\
77
+
babel-plugin-transform-runtime\
77
78
--save-dev
78
79
```
79
80
@@ -114,6 +115,12 @@ browserify('./main.js')
114
115
.pipe(fs.createWriteStream("bundle.js"))
115
116
```
116
117
118
+
## Building for Production
119
+
120
+
Make sure to have the `NODE_ENV` environment variable set to `"production"` when building for production! This strips away unnecessary code (e.g. hot-reload) for smaller bundle size.
121
+
122
+
If you are using Gulp, note that `gulp --production`**does not** affect vueify; you still need to explicitly set `NODE_ENV=production`.
123
+
117
124
## ES2015 by Default
118
125
119
126
Vueify automatically transforms the JavaScript in your `*.vue` components using Babel. Write ES2015 today!
0 commit comments