This package has been deprecated

Author message:

This package has been deprecated.

html-webpack-plugin-flexible-script

1.0.3 • Public • Published

基于html-webpack-plugin的一个插件

自动将移动端rem自适应方案flexible.js添加到html头部

Usage

const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackPluginFlexibleScript = require('html-webpack-plugin-flexible-script');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin(),
    new HtmlWebpackPluginFlexibleScript({
      ...
    })
  ]
}

options

  • size: 750 // 页面尺寸 default: 750
  • remUnit: 200 // rem比例,和px2rem的remUnit是一致的 default: 200
  • ignore: [] // 需要忽略的页面,数组,正则匹配 default: []

Readme

Keywords

Package Sidebar

Install

npm i html-webpack-plugin-flexible-script

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.59 kB

Total Files

3

Last publish

Collaborators

  • zhoucheng