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.

貢獻者指南