VUE项目的简单搭建
2019-07-03 本文已影响0人
阿沙冲冲冲
1.npm install sass-loader node-sass -D就是指开发的时候才需要(引入sass,由于脚手架已经引入了打包工具webpack,不需要下载。webpack安装包)
2.项目中的router配置
项目中的router应当单独建一个文件夹,一个index.js,一个routes.js
routes文件中直接export default[{path:'/',
components:{}},{}]暴露出去,在index.js中创建实例来接受。


此步骤完成后还需要在main.js中导出这个实例
