Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 463 Bytes

File metadata and controls

34 lines (24 loc) · 463 Bytes

Webpack Tips

Frontend

Commands:

# Development
npm run build // creates dist folder
npm run dev // runs dev server

# Production
npm run build:p // creates dist folder
npm run prod // runs production server

Frontend + Backend

Commands:

npm run build // creates dist folder
npm run watch // runs nodemon
--webpack

Clean up

Don't forget to remove webpack dist folder once you're done.

Command:

npm run clean