I'm trying to put a static landing page and a vuejs app together, but I need some help.
The guide at VueJS Documentation for multipage apps is not that clear or maybe not for my case: I don't have any js file to point to for the static page.
pages: {
landingpage: {
entry: 'src/landingpage/main.js', //entry for the public page
template: 'public/index.html', // source template
filename: 'index.html' // output as dist/*
},
app: {
entry: 'src/app/main.js', //entry for the app page
template: 'public/app.html',
filename: 'app.html'
}
}
I also tried moving the pages to a different location in the vue router, but no success.
routes: [
{
path: '/app/', // root of the app
name: 'Signin',
component: Signin
}
...
How can I solve this?
Edit: I use vue-cli
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…