Skip to content

Automate Javascript minification #25

@apierr

Description

@apierr

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions