Skip to content

Commit 2d356f1

Browse files
lxcuso4Justineo
authored andcommitted
Update deployment.md
1 parent 72a4735 commit 2d356f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
#### Browserify
5353

5454
- 在运行打包命令时将 `NODE_ENV` 设置为 `"production"`。这等于告诉 `vueify` 避免引入热重载和开发相关的代码。
55-
- 对打包后的文件进行一次全局的 [envify](https://github.com/hughsk/envify) 转换。这使得压缩工具能清除调 Vue 源码中所有用环境变量条件包裹起来的警告语句。例如:
55+
- 对打包后的文件进行一次全局的 [envify](https://github.com/hughsk/envify) 转换。这使得压缩工具能清除掉 Vue 源码中所有用环境变量条件包裹起来的警告语句。例如:
5656

5757
``` bash
5858
NODE_ENV=production browserify -g envify -e main.js | uglifyjs -c -m > build.js

0 commit comments

Comments
 (0)