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

Switch from Java, completely to Node #46

Open
4 of 12 tasks
Chris2011 opened this issue Mar 28, 2019 · 2 comments
Open
4 of 12 tasks

Switch from Java, completely to Node #46

Chris2011 opened this issue Mar 28, 2019 · 2 comments

Comments

@Chris2011
Copy link
Owner

Chris2011 commented Mar 28, 2019

In case that this plugin will/can minify JS/CSS/HTML and JSON we should get rid of finding Java wrapper for that and using Node and NPM packages. For Node we have a huge amount of modern and maintained libs for minify JS (UglifyJS, Google Closure Compiler, etc.) CSS (CSS Nano, etc.), HTML (HTML Minifier, etc.) and JSON (TBD). So it makes much more sense to change the options to add the CLIs for those packages as we have it for NPM, Bower, Sass, Less, Grunt, Gulp, etc. We will be more flexible and we will get more updates.

  • Switch from Java and YUICompressor to NPM and CSSNano.

  • Switch from Java and Closure Compiler to NPM and Google Closure Compiler.

  • Switch from Java and HTMLCompressor to NPM and html-minifier-terser.

  • Switch from Java and XMLCompressor to NPM and minify-xml.

  • Switch from Java and YUICompressor to NPM and CSSNano for minifing files in folders.

  • Switch from Java and Closure Compiler to NPM and Google Closure Compiler for minifing files in folders.

  • Switch from Java and HTMLCompressor to NPM and html-minifier-terser for minifing files in folders.

  • Switch from Java and XMLCompressor to NPM and minify-xml for minifing files in folders.

  • Switch from Java and YUICompressor to NPM and CSSNano for copy minified selected code.

  • Switch from Java and Closure Compiler to NPM and Google Closure Compiler for copy minified selected code.

  • Switch from Java and HTMLCompressor to NPM and html-minifier-terser for copy minified selected code.

  • Switch from Java and XMLCompressor to NPM and minify-xml for copy minified selected code.

@Chris2011
Copy link
Owner Author

That means a whole rewrite of the plugin, of the options and requires installed node. For a webdeveloper there shouldn't be a problem with that. Please give some feedback, what do you think about the plan.

@Chris2011
Copy link
Owner Author

Now all actions for single files were moved from Java based to node based. This is done. Just there are the java based implementations for the copy minifed code.

@Chris2011 Chris2011 pinned this issue Dec 12, 2020
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