metalsmith-inline-critical-css
Version:
Metalsmith plugin to inspect HTML files, inline used selectors from specified CSS, and load the rest asynchronously.
76 lines (75 loc) • 1.91 kB
JSON
{
"name": "metalsmith-inline-critical-css",
"version": "0.4.0",
"description": "Metalsmith plugin to inspect HTML files, inline used selectors from specified CSS, and load the rest asynchronously.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"scripts": {
"build": "npm-run-all clean tsc",
"clean": "rimraf dist/",
"tsc": "tsc",
"dev": "tsc --watch --pretty",
"test": "jest",
"release": "git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"files": [
"src",
"dist"
],
"engines": {
"node": ">=8"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fpapado/metalsmith-inline-critical-css.git"
},
"keywords": [
"metalsmith",
"critical",
"css",
"inline",
"preload",
"loadcss"
],
"author": "Fotis Papadogeorgopoulos (fpapado)",
"license": "MIT",
"bugs": {
"url": "https://github.com/fpapado/metalsmith-inline-critical-css/issues"
},
"homepage": "https://github.com/fpapado/metalsmith-inline-critical-css#readme",
"devDependencies": {
"@types/cheerio": "^0.22.9",
"@types/debug": "0.0.31",
"@types/gzip-size": "^4.1.0",
"@types/invariant": "^2.2.29",
"husky": "^1.1.3",
"jest": "^23.6.0",
"lint-staged": "^8.0.4",
"npm-run-all": "^4.1.3",
"prettier": "^1.15.2",
"rimraf": "^2.6.2",
"typescript": "^3.1.6"
},
"dependencies": {
"cheerio": "^1.0.0-rc.2",
"debug": "^4.1.0",
"fg-loadcss": "^2.0.1",
"gzip-size": "^5.0.0",
"invariant": "^2.2.4",
"multimatch": "^2.1.0",
"purgecss": "^1.1.0",
"purgecss-from-html": "^1.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,tsx,json,css,md}": [
"prettier --write",
"git add"
]
}
}