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