###BUILD APP
- From console
npx webpack
- From console with arguments
npx webpack --build-dir=/some/build/dir
- From console for prod
npx webpack --env=production
- Build via package.json
npm run build
- Build for prod via package.json
npm run build-production
- Build with resource url
npx webpack --build-dir=/bin --resource-url="http://localhost:8888/"
- Build with
--env=production
sets resource url to/
e.g.npx webpack --build-dir=/bin --env=production
npx webpack --build-dir=/Users/gropaga/Documents/wp-galdnieki/bin --env=production --mode=production --ga="UA-127752341-1"
scp /Users/someuser/project/bin/* user@sshplace:/home/user/www/project/bin/