Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Google Closure Javascript minifier as a part of production run #7

Open
MTDdk opened this issue Jun 23, 2015 · 0 comments
Open

Comments

@MTDdk
Copy link
Owner

MTDdk commented Jun 23, 2015

At first it could be a part of the Gradle build, or a simple script.

It should somehow automatically do optimisations when running in production mode.
Most conveniently during bootstrap.
This involves some renaming of referenced scripts by the framework.

Each script referenced in site.json that is locally referred, is prone to this sort of optimising.
Of course this either means, that bootstrap should read all site.json and do this optimisation, OR optimisation will be done dynamically whenever a new site.json is read from disk.

Perhaps let any errors be output as a file next to the .js (either next to the original or the generated), instead of failing the entire build.
Could also output to log during bootstrap.

https://github.com/google/closure-compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant