@pkb/plugin-stylelint
webpack-box 插件,配置 stylelint 及修复
Last updated 8 months ago by xuege2019 .
Original npm · Tarball · package.json
$ cnpm install @pkb/plugin-stylelint 
SYNC missed versions from official npm registry.

@pkb/plugin-stylelint 插件

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

安装

npm i -D @pkb/plugin-stylelint

配置

在根目录下 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"
  }
}

Current Tags

  • 1.2.10                                ...           latest (8 months ago)

6 Versions

  • 1.2.10                                ...           8 months ago
  • 1.2.8                                ...           8 months ago
  • 1.2.7                                ...           8 months ago
  • 1.2.5                                ...           8 months ago
  • 1.2.3                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 5
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |