0

I am trying to deploy my first application made with vue-cli,

everything works in npm run dev, now when I build with npm run build, it created dist directory, with file structure: index.html static/

but every reference in index.html etc.. is to /app/static

src=/app/static/js/vendor.87e3cb

if I create a directory named app and copy static to /app than everything works.

I am obviously missing something simple.

1 Answer 1

1

simple enough, in /config/index.js file, I had assetsPublicPath: '/app/', set only for build, but commented out for dev.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.