Skip to content

nanjingcaiyong/webpack-skeleton-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

webpack 生成骨架屏插件

webpack 自动生成骨架屏插件

安装插件

npm i html5parser -D
npm i ws -D

·

使用

第一步:引入

const WebpackSkeletonPlugin = require('webpack-skeleton-plugin')

module.exports = {
  ...
  plugins: [
    new WebpackSkeletonPlugin({
      path: 
    })
  ]
}

第二步:生成html文件

在浏览器控制台输入 generate()

注意:需要在展示骨架的容器的 class 上添加 skl 样式类

About

webpack 生成骨架屏插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published