similar-sc-vue-cli-plugin-loading

0.1.7 • Public • Published

加载中骨架屏

使用方法

npm install @sc/vue-cli-plugin-loading --save-dev

安装插件后,构建过程会自动替换html

更多配置

// vue.config.js
module.exports = {
  pluginOptions: {
    // 骨架屏读取的key
    loadingOptions: {
      // 忽略的文件,不插入骨架屏
      ignoreHtmlFiles: ['help', 'aboutUs'],
      // 自定义html
      html: '<div>...</div>',
      // 自定义脚本
      js: '<script type="text/javascript">...</script>', 
      // 自定义样式
      style: `<style>...</style>`
    }
  }
}

Readme

Keywords

Package Sidebar

Install

npm i similar-sc-vue-cli-plugin-loading

Weekly Downloads

46

Version

0.1.7

License

ISC

Unpacked Size

7.46 kB

Total Files

3

Last publish

Collaborators

  • fengmindiannao