UNPKG

postcss-bgimage

Version:

Plugin for PoscCSS to remove or keep only images by url() to optimize page loading

83 lines (82 loc) 1.98 kB
{ "author": "Alexandr Antonov", "name": "postcss-bgimage", "version": "2.1.3", "description": "Plugin for PoscCSS to remove or keep only images by url() to optimize page loading", "main": "./dist/index.js", "files": [ "dist/", "LICENSE", "README.md" ], "engines": { "node": ">=4.0.0" }, "scripts": { "build": "NODE_ENV=production rollup -c", "lint:js": "npx eslint ./src", "test": "mocha --require @babel/register test/*.js test/**/*.js", "ci": "npm run test && npm run lint:js", "test:watch": "npm run test -- --watch", "prebuild": "rm -rf dist", "prepublishOnly": "npm run build && git push && git push --tags", "preversion": "npm run lint:js && npm test" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.js": "npm run ci" }, "repository": { "type": "git", "url": "git+https://github.com/ahtohbi4/postcss-bgimage.git" }, "keywords": [ "postcss", "postcss-plugin", "optimization", "background", "background-image", "css" ], "license": "MIT", "bugs": { "url": "https://github.com/ahtohbi4/postcss-bgimage/issues" }, "homepage": "https://github.com/ahtohbi4/postcss-bgimage#readme", "dependencies": { "css-color-list": "0.0.2", "postcss": "^7.0.26" }, "devDependencies": { "@babel/core": "^7.8.4", "@babel/preset-env": "^7.8.4", "@babel/register": "^7.8.3", "babel-eslint": "^10.0.3", "eslint": "^6.8.0", "eslint-config-airbnb-base": "^14.0.0", "eslint-plugin-import": "^2.20.1", "expect": "^25.1.0", "husky": "^4.2.3", "lint-staged": "^10.0.7", "mocha": "^7.0.1", "rollup": "^1.31.1", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-commonjs": "^10.1.0" }, "babel": { "presets": [ [ "@babel/preset-env", { "targets": { "node": "current" } } ] ] } }