feat(cli): add build-site command

This commit is contained in:
陈嘉涵
2019-11-29 17:11:07 +08:00
parent f1310ff01b
commit 5f91e16825
11 changed files with 164 additions and 120 deletions

View File

@@ -16,9 +16,10 @@ export default {
},
data() {
const publicPath = (config.site && config.site.publicPath) || '/';
return {
config: config.site,
simulator: `mobile.html${location.hash}`
simulator: `${publicPath}mobile.html${location.hash}`
};
}
};