How to use JavaScript library

Hi,

I am trying really hard to use the JavaScript libraries feature in IntelliJ but all I am getting is frustrated. I have defined a custom JavaScript library for snap.svg.js with a Debug (readable) and Release-version (minimal). This library appears in my web project's External Libraries. Here are my questions:

1. How can I include the library in a jsp/html file with <script>? Bonus question: How can I define the configuration Debug/Release?

2. How can I deploy the library to web/js inside a war?

3. How can I make JsLint recognize the existience of the library? It doesn't know about for example Snap(), which is core to the library.

Regards
Björn

Please sign in to leave a comment.