lazy-load-img-component
Version:
An simple image lazy load component based on react hooks and IntersectionObserver
86 lines (85 loc) • 2.41 kB
JSON
{
"name": "lazy-load-img-component",
"version": "1.1.1",
"description": "An simple image lazy load component based on react hooks and IntersectionObserver",
"scripts": {
"build": "rm -rf libs && webpack --config ./config/webpack.config.prod.js",
"patch": "npm run build && npm version patch && npm publish",
"minor": "npm run build && npm version minor && npm publish",
"major": "npm run build && npm version major && npm publish",
"dev": "webpack-dev-server --config ./config/webpack.config.dev.js"
},
"husky": {
"hooks": {
"pre-commit": "eslint --fix"
}
},
"main": "./libs/index.js",
"types": "./libs/index.d.ts",
"files": [
"libs/*"
],
"keywords": [
"lazy-load-image",
"react hooks",
"typescript",
"intersection-observer",
"lazyload-images"
],
"author": {
"name": "songsong",
"email": "17317112520@163.com"
},
"homepage": "https://github.com/songsng/lazy-load-img-component/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/songsng/lazy-load-img-component.git"
},
"license": "MIT",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.7.4",
"@types/node": "^12.12.8",
"@types/react": "^16.9.11",
"@types/react-dom": "^16.9.4",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.0.6",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"html-webpack-plugin": "next",
"husky": "^4.2.5",
"prettier": "^2.1.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"ts-loader": "^6.2.1",
"typescript": "^3.7.2",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.1.5",
"webpack-merge": "^4.1.4"
},
"dependencies": {
"intersection-observer": "^0.11.0"
}
}