microsoft/TypeScript-Vue-Starter

Note regarding NODE_ENV=development vs NODE_ENV=production

Open

#4 aperta il 11 mag 2017

Vedi su GitHub
 (1 commento) (4 reazioni) (0 assegnatari)JavaScript (620 fork)batch import
help wanted

Metriche repository

Star
 (4451 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor