JSPM

posthtml-standard-sequence

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q12676F
  • License MIT

PostHTML sequence for Plugins Standard

Package Exports

  • posthtml-standard-sequence

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (posthtml-standard-sequence) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Statusnpm versionDependency Statusjs-standard-styleCoveralls status

posthtml-standard-sequence

Standard sequence for configuration posthtml plugins, sorts the configuration file based on the internal configurator

Can be used as an option posthtml-load-plugins

standard sequence based configuration

{
  "include": {
    "priority": 998
  },
  "modules": {
    "priority": 999  
  }
}

Install

npm i -D posthtml-standard-sequence

Usage

import sequence from 'posthtml-standard-sequence';

const configuration = {
  "bem": {
      "elemPrefix": "__",
      "modPrefix": "-",
      "modDlmtr": "--"
  },
  "include": {
      "root": "./",
      "encoding": "utf-8"
  },
  "styleToFile": {
      "path": "./dist/style.css"
  }
}

sequence(configuration) 
// return ==> {"include": {...}, "bem": {...}, "styleToFile": {...}}