UNPKG

img-2

Version:

Replace <img /> elements with <img-2> to automatically pre-cache images and improve page performance.

26 lines (25 loc) 1.06 kB
{ "name": "img-2", "version": "0.0.4", "repository": "https://github.com/RevillWeb/img-2.git", "description": "Replace <img /> elements with <img-2> to automatically pre-cache images and improve page performance.", "main": "dist/img-2.js", "scripts": { "watch": "babel --plugins=transform-class-properties,transform-es2015-modules-strip src/img-2.js --out-file dist/img-2.js --watch", "build": "babel --plugins=transform-class-properties,transform-es2015-modules-strip src/img-2.js --out-file dist/img-2.js && babel --plugins=transform-class-properties --presets=es2015 src/img-2.js --out-file dist/img-2.es5.js", "serve": "http-server -p 3232 ." }, "keywords": [ "pre-cache", "pre-load" ], "author": "Leon Revill (@revillweb)", "license": "MIT", "devDependencies": { "babel-core": "^6.26.0", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-es2015-modules-strip": "^0.1.1", "babel-preset-es2015": "^6.24.1", "http-server": "^0.11.1" } }