process.exit(1);
}
console.log(chalk.cyan(" Build complete.n"));
console.log(
chalk.yellow(
" Tip: built files are meant to be served over an HTTP server.n" +
" Opening index.html over file:// won't work.n"
)
);
});
});
10.3 创建好以上文件 我们就可以通过npm run build来打包我们的项目文件并部署上线啦。
十一.大功告成!
通过以上步骤,一个spa版的vue脚手架就大功告成啦!
如果对一些细节不懂的可以留言或者上我的github查看
地址:https://github.com/webfansplz/xc-cli.git (本地下载)
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,如果有疑问大家可以留言交流,谢谢大家对软件开发网的支持。










