- no need to wait bundle & build in dev mode
- base on es module & es6
- bundle and build by webpack4 for production
npm init -yinit node projectnpm install https://github.com/miterfrants/swim.gitinstall swim from githubnode node_modules/swim/auto/initialize-project-structure.jsinitialize swim structure of project
npm run swim-update
- open terminal and point to your project folder
cd ./srcpoint to src foldernode server.jsrun dev server with nodejs- open
https://localhost/todos/with browser
- open terminal with your project
cd ./distpoint to distribution folderFORCE_UPDATE=true NODE_ENV={envName} npm run swim-buildbuild and bundle js, css, htmlnode server.jsrun bundle code with nodejs- open
https://localhost/todos/with browser