3.0.0-beta.13
https://github.com/CXY037/vue-cli-pages-bug
vue.config.js 's pages
const pages = {}
glob.sync('./src/pages/**/app.js').forEach(path => {
const chunk = path.split('./src/pages/')[1].split('/app.js')[0]
const page = {}
page.entry = path
page.template = resolve(path.replace(/app.js/g, 'app.html'))
// page.filename = ${chunk}.html
pages[chunk] = page
})
pages normal
dub dir page got
http://localhost:8081/sockjs-node/info?t=1527653005031
404 not found
the fixed method is
modify
@vue/cli-service/lib/commands/server.js
change require.resolve(webpack-dev-server/client),
to require.resolve('webpack-dev-server/client') + '?http://localhost:8081',
the ref url is : https://github.com/webpack/webpack-dev-server/issues/704#issuecomment-262242139
vue-cli 3 doesn'thave a pages option so I have no idea what this is about?
@LinusBorg Yes it has: https://github.com/vuejs/vue-cli/commit/869f00513e14011bb07d830b27a1eef87daa2230
Oh. Then our docs are out of sync :-P
@LinusBorg I read the code and find the multipages-app support hah
@Akryum you can modify the code and it's working fine
This is fixed by #1405
Most helpful comment
Oh. Then our docs are out of sync :-P