T
T
TinyZerg2018-04-17 10:38:58
Vue.js
TinyZerg, 2018-04-17 10:38:58

Why is Vue-cli not working in the browser?

I installed vue-cli, wrote a test component, ran npm run dev, everything worked as it should in the browser. I ran npm run build, built the build.js file. I posted the index.html file and the dist/build.js folder in production on nginx, I run it from the desktop browser - everything works as it should. I start from a tablet or mobile phone - a white screen and that's it. What is wrong or vue and js files that webpack collected for me are not supported by mobile browsers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-04-17
@webinar

It looks like it wasn't put together correctly. Are there any errors in the console? Where is the builder config? Try to connect https://cdn.jsdelivr.net/npm/vue/dist/vue.jsto check if the problem is in the assembly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question