[chore] Add dev script for easier development loop (#16)
This PR adds a npm "dev" script. Upon executing `npm run dev`, the project will be served (default port 3035) in "watch" mode, every local change of the files will refresh the page. This change should enable faster development loop. Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/16 Co-authored-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com> Co-committed-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
This commit is contained in:
committed by
tobi
parent
84718945c6
commit
0f77cb593c
@@ -5,6 +5,7 @@
|
||||
"node": ">=16"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack/development.js",
|
||||
"build:development": "cross-env NODE_ENV=development webpack --config config/webpack/development.js",
|
||||
"build:production": "cross-env NODE_ENV=production webpack --config config/webpack/production.js",
|
||||
"build": "cross-env NODE_ENV=production webpack --config config/webpack/production.js",
|
||||
|
||||
Reference in New Issue
Block a user