@pirxpilot/html-browserify
Advanced tools
+6
-0
| 1.0.1 / 2018-12-21 | ||
| ================== | ||
| * use standard Transform stream instead of through2 | ||
| * only test LTS and stable version for Travis CI | ||
| 1.0.0 / 2018-12-02 | ||
@@ -3,0 +9,0 @@ ================== |
+4
-4
@@ -1,2 +0,2 @@ | ||
| const through = require('through2'); | ||
| const { Transform, PassThrough } = require('stream'); | ||
| const htmlclean = require('htmlclean'); | ||
@@ -12,5 +12,5 @@ | ||
| return /\.(tpl|html)/.test(file) ? through(onwrite, onend) : through(); | ||
| return /\.(tpl|html)/.test(file) ? new Transform({ transform, flush }) : new PassThrough(); | ||
| function onwrite(chunk, enc, next) { | ||
| function transform(chunk, enc, next) { | ||
| chunks.push(chunk); | ||
@@ -20,3 +20,3 @@ next(); | ||
| function onend(next) { | ||
| function flush(next) { | ||
| let jst = chunks.map(c => c.toString()).join(''); | ||
@@ -23,0 +23,0 @@ |
+2
-3
| { | ||
| "name": "@pirxpilot/html-browserify", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Makes HTML files usuable as modules in Browserify", | ||
@@ -25,4 +25,3 @@ "scripts": { | ||
| "dependencies": { | ||
| "htmlclean": "~3", | ||
| "through2": "~3" | ||
| "htmlclean": "~3" | ||
| }, | ||
@@ -29,0 +28,0 @@ "devDependencies": { |
3271
5.14%1
-50%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed