microsoft/TypeScript-Vue-Starter

Note regarding NODE_ENV=development vs NODE_ENV=production

オープン

#4 opened on 2017/05/11

 (1 件のコメント) (4 件のリアクション) (0 人の担当者)JavaScript (620 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (4,451 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド