parcel+vue

1.简单的安装parcel

cnpm i -g parcel-bundler

2.新建一个component 文件 新建几个路由组件


foot.vue
hea.vue

3.新建一个router文件夹 新建一个index.js


index.js

4.配置跟组件和main.js 


App.vue


main.js

5.打包的index.html文件


index.html

执行以下命令打包

parcel index.html --open

6.打包parcel build index.html 


dist

你可能感兴趣的:(parcel+vue)