Skip to content

anrgct/postcss-delete-text-decoration-skip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

用postcss插件解决ant-design2.x版本text-decoration-skip警告的问题

建议升级antd3.x解决此问题,如果升级困难,可以考虑使用此插件

./node_modules/antd/es/style/index.less (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/less-loader/dist/cjs.js??ref--6-oneOf-6-3!./node_modules/antd/es/style/index.less)
Warning

(507:3) Replace text-decoration-skip: ink to text-decoration-skip-ink: auto, because spec had been changed

Issues:

使用方式,在webpack.config.jsloaders中:

{
    loader: 'postcss-loader' ,
    options: {
        ident: 'postcss',
        plugins: () => [
            // require module postcss-delete-text-decoration-skip
            require('postcss-delete-text-decoration-skip') ,
        ] ,
    } ,
},

About

clear antd2.x text-decoration-skip warning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.0%
  • CSS 15.0%