Skip to content

Add a Grunt watcher to uglify JavaScript and/or to minify CSS#1432

Merged
ocean90 merged 3 commits into
GlotPress:developfrom
amieiro:grunt-watcher
May 11, 2022
Merged

Add a Grunt watcher to uglify JavaScript and/or to minify CSS#1432
ocean90 merged 3 commits into
GlotPress:developfrom
amieiro:grunt-watcher

Conversation

@amieiro

@amieiro amieiro commented May 6, 2022

Copy link
Copy Markdown
Member

When you are developing some JavaScript and/or CSS in GlotPress, you need to uglify JavaScript and/or to minify CSS to load the changes in the browser.

This PR adds a watcher to:

  • Uglify automatically the JavaScript files when you save an update in any JavaScript file.
  • Minify automatically the CSS files when you save an update in any CSS file.

To run this new command, you can run:

  • npm run grunt:wath from the GlotPress base folder.
  • grunt watch from the GlotPress base folder if you have Grunt installed globally.

You can find more information about grunt-contrib-watch here.

Comment thread package.json Outdated
@ocean90 ocean90 added this to the 4.0 milestone May 9, 2022
amieiro and others added 2 commits May 9, 2022 15:04
Co-authored-by: Dominik Schilling <dominikschilling+git@gmail.com>
@amieiro amieiro requested a review from ocean90 May 9, 2022 13:09
@ocean90 ocean90 merged commit 242ed0b into GlotPress:develop May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants