Skip to content

Conversation

@amieiro
Copy link
Member

@amieiro amieiro commented May 6, 2022

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.

@ocean90 ocean90 added this to the 4.0 milestone May 9, 2022
@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