|
11 months ago | |
---|---|---|
custom-public | 11 months ago | |
public | 11 months ago | |
src | 11 months ago | |
.gitignore | 11 months ago | |
README.md | 11 months ago | |
babel.config.js | 11 months ago | |
package-lock.json | 11 months ago | |
package.json | 11 months ago | |
vue.config.js | 11 months ago |
Just some stuff I hacked together to get a vue-cli created app to support
multiple sites. Key things to look at compared to a base vue create <app>
site:
npm run build
commands to support multiple sites, an “admin”
and a “main” site. Each one has a custom dist/ output folder (--dest option)
and a custom entry point (e.g. “./src/admin/index.js” instead of default
“./src/main.js”)So when you run npm run build-admin
it creates dist-admin/
taking the
custom-public folder and the admin entrypoint. npm run build-main
creates the
dist/
folder and the normal public folder.
npm install
npm run serve
npm run build
npm run lint