post / post-load-plugins

Automatically loads plug-ins with configuration
MIT License
3 stars 2 forks source link

[test]: multi config #144

Open Scrum opened 6 years ago

Scrum commented 6 years ago

package.json

"posthtml": {
  "posthtml-beautify": {
    "rusle": {
      "blankLines": true
    }
  }
}

posthtml.config.js

module.exports = {
  plugins: [
    require("posthtml-beautify")({
        rules: {
          blankLines: false
        }
    })
  ]
};
andreyvolokitin commented 6 years ago

Just in case: blankLines should be inside rules object, see https://github.com/Scrum/posthtml-beautify#rules