I need add my local javascript file to my gatsby project. The file is a library. What I tried to do:
1) put myscript.js
to ./src
and import it in ./src/html.js
file as import from './myscript.js';
2) put myscript.js
to ./src
and import it in ./src/html.js
file as <script type='text/javascript' src="./myscript.js"/>
3) put myscript.js
to ./public
and import it in both ways
But none of this works. Please, tell me how to do it?