Skip to content

webpack插件, 将style inline属性里的px转换为vw

Notifications You must be signed in to change notification settings

shangyunsi/px2vw-inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

px2vw inline-style 插件

可将inline-style里的px单位转换为vw

// webpack 配置方法

  rules: [{
    ...// js file
    use: [
      {
        loader: 'px2vm-inline',
        options: {
          rootValue: 750,
          vwFixed: 2,
          minPixelValue: 12,
        },
      }
    ],
  }, 

About

webpack插件, 将style inline属性里的px转换为vw

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published