UNPKG

inline-critical

Version:

Inline critical-path css and load the existing stylesheets asynchronously

97 lines (96 loc) 2.21 kB
{ "name": "inline-critical", "version": "12.1.0", "description": "Inline critical-path css and load the existing stylesheets asynchronously", "main": "index.js", "exports": { ".": "./index.js", "./css": "./src/css.js", "./dom": "./src/dom.js" }, "type": "module", "scripts": { "jest": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage --runInBand --detectOpenHandles", "lint": "xo", "xo": "xo", "fix": "xo --fix", "test": "npm run xo && npm run jest" }, "files": [ "index.js", "cli.js", "src/*.js" ], "bin": { "inline-critical": "cli.js" }, "repository": { "type": "git", "url": "git+https://github.com/bezoerb/inline-critical.git" }, "homepage": "https://github.com/bezoerb/inline-critical#readme", "keywords": [ "css", "inline", "loadcss", "critical-path" ], "author": "Ben Zörb <ben@sommerlaune.com>", "license": "MIT", "bugs": { "url": "https://github.com/bezoerb/inline-critical/issues" }, "engines": { "node": ">=18.18" }, "dependencies": { "@adobe/css-tools": "^4.3.3", "clean-css": "^5.3.3", "detect-indent": "^7.0.1", "fg-loadcss": "^2.1.0", "get-stdin": "^9.0.0", "indent-string": "^5.0.0", "jsdom": "^24.0.0", "lodash.defaults": "^4.2.0", "lodash.escaperegexp": "^4.1.2", "lodash.isregexp": "^4.0.1", "lodash.isstring": "^4.0.1", "meow": "^13.2.0", "normalize-newline": "^4.1.0", "picocolors": "^1.0.0", "postcss": "^8.4.38", "postcss-discard": "^2.0.0", "reaver": "^2.0.0", "slash": "^5.1.0", "uglify-js": "^3.17.4" }, "devDependencies": { "cross-env": "^7.0.3", "fs-extra": "^11.2.0", "jest": "^29.7.0", "read-package-up": "^11.0.0", "xo": "^0.58.0" }, "prettier": { "bracketSpacing": false, "printWidth": 120, "singleQuote": true, "trailingComma": "es5" }, "xo": { "space": 2, "prettier": true, "rules": { "prefer-template": "error", "unicorn/no-array-reduce": "off" }, "overrides": [ { "files": "test/**/*.test.js", "envs": [ "jest" ] } ] } }