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

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

Merged
merged 3 commits into from
May 11, 2022

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