JSPM

posthtml-standard-sequence

0.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q12639F
  • 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

standard-sequence

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

DEPRECATED, recommended to use post-sequence

Build Statusnpm versionDependency Statusjs-standard-styleCoveralls status

standard sequence based configuration

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

Install

npm i -D posthtml-standard-sequence

Note: This project is compatible with node v4+

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": {...}}