a multiple demo with vue-loader webpack
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
在
src/views/
目录下新建文件夹,如index
文件夹下创建同名html
和js
文件。即可通过localhost:8080/index.html
访问该页面
For a detailed explanation on how things work, check out the guide and docs for vue-loader.