-
npm i--- install node_modules -
npm run dev--- build project (CSS and HTML files will also be built by this command), and bundle.js and bundle.js.map files will appear in the /public/js folder. -
npm run build--- build project, but final (with optimization, maximum file minification), which can be uploaded to hosting. -
npm run watch--- automatic viewing mode for changes in project files with automatic build of changed files. -
npm run start--- start local server, which will run HTML page and will also track changes in files.
The main model is - Branching model
-
main-productionenvironment code branch -
develop- the main branch where allfeature/<issue-key>branches are uploaded, for examplefeature/CODE-123, a development branch
A simple static site on Webpack 4 ( github link )
-
node -vv17.4.0 -
npm -v8.4.1