A Vue.js project
# 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
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
- npm install vue-skeleton-webpack-plugin
- 先写好骨架屏组件 Skeleton.vue
- 创建一个仅使用骨架屏组件的入口文件 js skeleton.entry.js
const SkeletonWebpackPlugin = require("vue-skeleton-webpack-plugin");
new SkeletonWebpackPlugin({
webpackConfig: require('./webpack.skeleton.conf'),
quiet: true
})