@webharmony/web-lazy-img
Advanced tools
Comparing version 1.2.3 to 1.2.5
const gulp = require('gulp'); | ||
const uglify = require('gulp-uglify-es').default; | ||
const spawn = require('child_process').spawn; | ||
const rollup = require('rollup'); | ||
const rollupTypescript = require('rollup-plugin-typescript'); | ||
const ts = require('gulp-typescript'); | ||
const project = ts.createProject("tsconfig.json"); | ||
gulp.task('serve', () => { | ||
@@ -30,2 +35,11 @@ const spawnOptions = { | ||
}) | ||
}) | ||
gulp.task('default', ()=>{ | ||
return project.src() | ||
.pipe(project()) | ||
.pipe(uglify({ | ||
})) | ||
.pipe(gulp.dest("lib")) | ||
}); |
@@ -41,2 +41,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
display:block; | ||
max-width:100%; | ||
max-height: 100%; | ||
} | ||
@@ -67,2 +69,4 @@ | ||
} | ||
this.style.width = this.width; | ||
this.style.height = this.height; | ||
} | ||
@@ -69,0 +73,0 @@ render() { |
{ | ||
"name": "@webharmony/web-lazy-img", | ||
"version": "1.2.3", | ||
"version": "1.2.5", | ||
"description": "Custom element for handle lazy load images with placeholder img and blur effect", | ||
@@ -11,3 +11,3 @@ "main": "lib/web-lazy-img.js", | ||
"tsc:watch": "tsc --watch", | ||
"serve": "gulp serve", | ||
"start": "gulp serve", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
@@ -32,2 +32,5 @@ "lint": "tslint --project ./", | ||
"gulp": "^4.0.0", | ||
"gulp-typescript": "^5.0.1", | ||
"gulp-uglify": "^3.0.2", | ||
"gulp-uglify-es": "^1.0.4", | ||
"gulpclass": "^0.2.0", | ||
@@ -34,0 +37,0 @@ "rollup": "^1.10.0", |
@@ -37,2 +37,4 @@ import { css, customElement, html, LitElement, property } from 'lit-element'; | ||
display:block; | ||
max-width:100%; | ||
max-height: 100%; | ||
} | ||
@@ -64,2 +66,4 @@ | ||
} | ||
this.style.width = this.width; | ||
this.style.height = this.height; | ||
} | ||
@@ -66,0 +70,0 @@ |
Sorry, the diff of this file is not supported yet
2724747
296
14