0

I have a javascript file that I would like to uglify and inline in a html page.

I've found a bunch of grunt tasks for inlining css files but none for js.

1
  • You just want minimize a javascript file? Commented Sep 24, 2013 at 20:52

1 Answer 1

2

Check out this plugin, https://npmjs.org/package/grunt-string-replace . Under the config example it has an example of how to inline a script.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.