microsoft/TypeScript-Vue-Starter

Note regarding NODE_ENV=development vs NODE_ENV=production

开放

#4 创建于 2017年5月11日

 (1 条评论) (4 个反应) (0 位负责人)JavaScript (620 个派生)batch import
help wanted

仓库指标

星标
 (4,451 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Vue Template compiler emits different content depending on this setting. It would be advised to include it in the scripts so devs can switch output easily from development to production...

"scripts": { "build": "NODE_ENV=development webpack", "test": "echo "Error: no test specified" && exit 1" },

--> Output: build.js ---> 877 kB

vs

"scripts": { "build": "NODE_ENV=production webpack", "test": "echo "Error: no test specified" && exit 1" },

--> Output: build.js ---> 104 kB (35kB gzip)

Great work on this. The workflow and example are very well done.

贡献者指南