html-inline-webpack-plugin
Advanced tools
Comparing version
@@ -46,4 +46,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
const buffer = fs_1.default.readFileSync(this.path); | ||
const source = buffer.toString(); | ||
compilation.emitAsset(this.assetName, new webpack_1.sources.RawSource(source)); | ||
compilation.emitAsset(this.assetName, new webpack_1.sources.RawSource(buffer)); | ||
} | ||
@@ -50,0 +49,0 @@ catch (err) { |
{ | ||
"name": "html-inline-webpack-plugin", | ||
"description": "This webpack plugin package is bundling related HTML files by injecting inline tags.", | ||
"version": "1.0.0-beta6", | ||
"version": "1.0.0-beta7", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist/types/index.d.ts", |
@@ -8,3 +8,3 @@ <div align="center"> | ||
<th>Version</th> | ||
<th>v1.0.0-beta6</th> | ||
<th>v1.0.0-beta7</th> | ||
</tr> | ||
@@ -21,2 +21,4 @@ </tbody> | ||
> See Also, If you want the change-log by version for this package. refer to [Change Log](CHANGELOG.md) for details. | ||
## Support Current Status | ||
@@ -23,0 +25,0 @@ | Type | Status | Support | |
@@ -35,4 +35,3 @@ import { HTMLElement } from "node-html-parser"; | ||
const buffer = fs.readFileSync(this.path); | ||
const source = buffer.toString(); | ||
compilation.emitAsset(this.assetName, new sources.RawSource(source)); | ||
compilation.emitAsset(this.assetName, new sources.RawSource(buffer)); | ||
} catch (err) { | ||
@@ -39,0 +38,0 @@ throw new Error(`Exception while reading the file of a given favicon path: ${(err as Error).message}`); |
44866
0.3%23
4.55%79
2.6%845
-0.24%