Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit b2bc45a

Browse files
committed
update readme [ci skip]
1 parent 01ad6a9 commit b2bc45a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ npm install vueify --save-dev
6767
browserify -t vueify -e src/main.js -o build/build.js
6868
```
6969

70-
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:
7171

7272
``` bash
7373
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\
7778
--save-dev
7879
```
7980

@@ -114,6 +115,12 @@ browserify('./main.js')
114115
.pipe(fs.createWriteStream("bundle.js"))
115116
```
116117

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+
117124
## ES2015 by Default
118125

119126
Vueify automatically transforms the JavaScript in your `*.vue` components using Babel. Write ES2015 today!

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy