Skip to content

Commit e450873

Browse files
committed
clean: remove debugging console.log
1 parent c8b8e69 commit e450873

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

README.npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Additionally, CSS extracted from styles imported in JS can be injected into HTML
4343
- Build-in support for [template engines](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#template-engine): [Eta](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-eta), [EJS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-ejs), [Handlebars](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-handlebars), [Nunjucks](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-nunjucks), [Pug](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-pug), [Tempura](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-tempura), [TwigJS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-twig), [LiquidJS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-liquidjs).
4444
- Build-in support for **Markdown** `*.md` files in templates, see [Markdown demo](https://stackblitz.com/edit/markdown-to-html-webpack?file=webpack.config.js) in browser.
4545

46-
- **Resolve**[source files](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#loader-option-sources) of [`script`](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-js), [`style`](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-css)
46+
- **Resolve** [source files](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#loader-option-sources) of [`script`](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-js), [`style`](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-css)
4747
- `<link href="./style.scss" rel="stylesheet">`
4848
- `<script src="./app.ts" defer="defer"></script>`
4949
- `<link href="../images/favicon.svg" type="image/svg" rel=icon />`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"scripts": {
5555
"security": "npm audit --omit=dev",
56-
"lint:spelling": "cspell lint --color --show-context \"**/*.md\"",
56+
"lint:spell": "cspell lint --color --show-context \"**/*.md\"",
5757
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --config ./test/jest.config.js",
5858
"test:coverage": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --collectCoverage --config ./test/jest.config.js",
5959
"test:index": "jest --detectOpenHandles --config ./test/jest.config.js --runTestsByPath ./test/index.test.js",

src/Plugin/AssetCompiler.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,6 @@ class AssetCompiler {
753753
if (this.assetInline.isSvgFile(resource)) {
754754
svgOptions = this.pluginOption.getInlineSvgOptions(resource, createData);
755755

756-
//console.log('--- afterResolve: ', { issuer, resource, svgOptions });
757-
758756
if (svgOptions?.warning) {
759757
outputWarning(svgOptions.warning);
760758
}
@@ -882,8 +880,6 @@ class AssetCompiler {
882880
dataUrlOptions.encoding = assetEncoding;
883881
}
884882

885-
//console.log('*** saveData: ', { resource: module.resource, encoding, dataUrlOptions }, '\n');
886-
887883
module.generator = new AssetGenerator(moduleGraph, dataUrlOptions, filename, publicPath, outputPath, emit);
888884
}
889885

@@ -1020,8 +1016,6 @@ class AssetCompiler {
10201016
const isSvgFile = this.assetInline.isSvgFile(resource);
10211017
const isInlineSvg = isSvgFile && this.pluginOption.getInlineSvgOptions(resource, module).inline;
10221018

1023-
//console.log('*** isInlineSvg: ', { resource, isSvgFile, isInlineSvg });
1024-
10251019
if (
10261020
type === ASSET_MODULE_TYPE ||
10271021
type === ASSET_MODULE_TYPE_INLINE ||
@@ -1158,7 +1152,6 @@ class AssetCompiler {
11581152
: null;
11591153

11601154
if (svgOptions?.inline) {
1161-
//console.log('*** renderManifest: ', { resource }, svgOptions);
11621155
this.assetInline.saveData(entry, chunk, module, codeGenerationResults, moduleType, svgOptions);
11631156
} else {
11641157
switch (moduleType) {

0 commit comments

Comments
 (0)