2

I load my javascript files dinamically, so when I load them, to see those files in DevTools, I use the sourceUrl directive like this

//@ sourceURL=foo.js

I now added to my project UglifyJS2 to minify my JS, but the problem is that its considering the sourceUrl directive as a comment.

So now its removing that and I can't see my scripts in dev tools.

Is there a way I can avoid this happening ?

1
  • Are you using UglifyJS or UglifyJS2? Commented Jan 14, 2015 at 2:00

0

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.