# skeleton-webpack5-plugin **Repository Path**: liangbairong/skeleton-webpack5-plugin ## Basic Information - **Project Name**: skeleton-webpack5-plugin - **Description**: webpack5的骨架屏 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-04-09 - **Last Updated**: 2022-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # skeleton-webpack5-plugin #### webpack5的骨架屏,基于`html-webpack-plugin`,适用vue react ### 使用方法 下载 ``` npm i skeleton-webpack5-plugin ``` #### webpack.config.js ```javascript const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const SkeletonWebpack5Plugin=require('skeleton-webpack5-plugin') module.exports = { mode: 'development', entry: { app: './src/index.ts', }, devtool: 'inline-source-map', devServer: {}, plugins: [ new HtmlWebpackPlugin({ template: path.resolve(__dirname, 'public/index.html'), }), new SkeletonWebpack5Plugin({ url: path.resolve(__dirname, 'src/template.html'), HtmlWebpackPlugin }) ], } ``` #### src/template.html ```html
```