Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Steps to reproduce
I have this Vue.js 2.6 app done with Vue CLI v4.0 ,
Now i want to publish my app, so I run :
Then, the dist directory is created and index.html is missing all of the quotes, so i 've got a blank page, and nothing is working .
This is the generated index.html :
This is my package.json , do you see something abnormal ?
What is expected?
it is suppose to work directly so i can display the website .
What is actually happening?
Quotes are removed from any where, probably not only index.html but through all of the app, so I can't make it work . It seems to have started with cli 4.0
Thank you, Sodatea, I understand now.
Hello !, I'm in the dist directory , then I install serve https://www.npmjs.com/package/serve , then i type this :
Now i can access the dist app from http://localhost:5000 inside of my navigator.
The problem is this :
As long as I place the dist folder inside of my old apache server UWAMP 3.10, it wont work . Do you know if Vue can't be used from an apache server any more as long as it is generated by webpack ?
It isn't working, I need this to work, vue without webpack is working really well on apache servers , how can I disable webpack uglifyer and minifier please, this breaks all of the code during the NPM BUILD process.
EDIT : HEY ! Placed the whole DIST content inside of a NODE.JS server, inside a PUBLIC directory served by the node backend , like this :
And now the app is currently working ! I guess It's time to abandon Apache servers when using webpack ?.