hello, I’m trying to deploy a site but my javascript doesn’t work, and i don’t know if it is because of my webpack.config. If can some one can help me
this is the code
hello, I’m trying to deploy a site but my javascript doesn’t work, and i don’t know if it is because of my webpack.config. If can some one can help me
this is the code
@ATT5 You’ve specified the reference to your main.js
file with:
<script src="/dist/main.js"></script>
If you’re deploying the dist
folder, then that becomes the root, and you actually want the src
path to be:
<script src="/main.js"></script>
thanks!! it worked !