vue-script2 icon indicating copy to clipboard operation
vue-script2 copied to clipboard

help about js file 404

Open zero2hj opened this issue 7 years ago • 2 comments

which I want to do is throw an old html page into this vue project.

<!--example3.html file-->
<div style="color: red;">
    I am a html file container script
    <script2 src="../1.js"></script2>
</div>
<!--1.js file-->
var App = function () {
    console.log('1.js run')
}

App();

project structure image

thanks for your help!

zero2hj avatar Jan 18 '19 03:01 zero2hj

Just guessing, but you need the 1.js file accessible to where the application is running. I don't see a 1.js file in your dist directory, so your path within the application should be relative to what is in dist, not src.

bignamehere avatar Jun 29 '22 19:06 bignamehere

thanks for you help, but this issue has really gone out of my mind. I will just let it go. thanks again.

zero2hj avatar Jul 01 '22 08:07 zero2hj