I need to automate Javascript minification, for now, yarn build performs "build": "rm -rf docs; react-scripts build && mv build docs"
For an unknown reason, react-scripts build fails while uglify-es is successful.
For now, the process to build the app is manual.
view-source:http://localhost:3000/
cd docs
wget *.js
../node_modules/uglify-es/bin/uglifyjs bundle.js 1.chunk.js main.chunk.js -o 1.js -c
I need to automate Javascript minification, for now,
yarn buildperforms"build": "rm -rf docs; react-scripts build && mv build docs"For an unknown reason,
react-scripts buildfails while uglify-es is successful.For now, the process to build the app is manual.