@pkb/plugin-stylelint

1.4.50 • Public • Published

@pkb/plugin-stylelint 插件

配合 webpack-box 使用,用来检查并修复 stylelint

安装

npm i -D @pkb/plugin-stylelint

配置

在根目录下 webpack-box.config.js 开启 stylelint

module.exports = function(config) {
  return {
    stylelint: {
      lintOnSave: true // 开启运行时检测
      extensions: ['vue', 'htm', 'html', 'css', 'sss', 'less', 'scss']
    }
  };
};

使用

在 package.json 中配置 lint 脚本,执行 npm run lint

package.json

{
  "scripts": {
    "lint": "webpack-box stylelint"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @pkb/plugin-stylelint

Weekly Downloads

0

Version

1.4.50

License

none

Unpacked Size

7.15 kB

Total Files

8

Last publish

Collaborators

  • xuege2019
  • liuys
  • happyweb