You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

wepy-plugin-bootstrap

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wepy-plugin-bootstrap

Introduce bootstrap in wepy project

1.0.9
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

wepy-plugin-bootstrap

wepy 插件,为前段开发者提供基于bootstrap开发微信小程序的供能

安装

$ npm i -D wepy-plugin-bootstrap

使用

在 wepy.config.js 中添加以下代码:

  plugins: {
    'bootstrap': {
      filter: /app\.(wxss)$/, // 匹配需转换的wxss文件,默认只转换app.wxss
      // 示例: 如果需要转换 index.wxss 和 app.wxss 两个文件, 则将filter设为下面的形式
      // filter: /(app|index)\.(wxss)$/,
      remToRpx: 35// 这个参数可以用来调整转换rem单位到rpx单位时使用的比例
    },
    'htmltag': {
       filter: /\.(wxml)$/, // 文件后缀匹配
    }
  }

如何在已有wepy项目中使用bootstrap

备注

需要和wepy-plugin-htmltag 一起使用

DEMO

wepy-bootstrap-demo

Keywords

bootstrap

FAQs

Package last updated on 05 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts