L
L
lillianfisher2021-04-10 18:09:37
Vue.js
lillianfisher, 2021-04-10 18:09:37

How to fix blank page in npm run build?

Hello, having built the default vue 2 cli (vuex router) project with the npm run build command, when I open index.html, I get a blank page. history mode in router is disabled. How to fix it. The site must open locally

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-04-10
@lillianfisher

// vue.config.js
module.exports = {
  publicPath: './'
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question