You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All, i am pretty stuck so not necessary an issue but I want to know if it is possible. Or is there a way round it?
I am using bower to add some dependancy that is not in npm. Then I just use standard import in index.js to get those scripts into scope. However eslint is ran against this and is not passing on them. Is there a way to escape eslint on these imports. Or is there another way to bring in external (bower) libs in?
Thanks
C
The text was updated successfully, but these errors were encountered:
The easiest way would be to copy them to the public folder and add a script to index.html, for example:
<scriptsrc="%PUBLIC_URL%/jquery.min.js"></script>
Then in the application code you could use it like:
const$=window.$;// or whatever global it exports
See the User Guide section on public folder. Note that you should use the minified version because the public folder contents is not automatically minified or optimized.
Alternatively you could just re-publish that dependency to npm yourself.
Hi All, i am pretty stuck so not necessary an issue but I want to know if it is possible. Or is there a way round it?
I am using bower to add some dependancy that is not in npm. Then I just use standard
import
inindex.js
to get those scripts into scope. However eslint is ran against this and is not passing on them. Is there a way to escape eslint on these imports. Or is there another way to bring in external (bower) libs in?Thanks
C
The text was updated successfully, but these errors were encountered: