diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index a3cedd77..00000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1,6 +0,0 @@
-# These are the default owners for everything in
-# webpack-contrib
-@webpack-contrib/org-maintainers
-
-# Add repository specific users / groups
-# below here for libs that are not maintained by the org.
\ No newline at end of file
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
deleted file mode 100644
index 0bee8707..00000000
--- a/.github/CONTRIBUTING.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# Contributing in @webpack-contrib
-
-We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
-Here are the guidelines we'd like you to follow:
-
-- [Questions and Problems](#question)
-- [Issues and Bugs](#issue)
-- [Feature Requests](#feature)
-- [Pull Request Submission Guidelines](#submit-pr)
-- [Commit Message Conventions](#commit)
-
-## Got a Question or Problem?
-
-Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack).
-StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack).
-The issue tracker is for bug reports and feature discussions.
-
-## Found an Issue or Bug?
-
-Before you submit an issue, please search the issue tracker, an issue for your problem may already exist, and the discussion might inform you of workarounds readily available.
-
-We want to fix all the issues as soon as possible, but before fixing a bug, we need to reproduce and confirm it. In order to reproduce bugs, we ask that you provide a minimal reproduction scenario (GitHub repo or failing test case). Having a live, reproducible scenario gives us a wealth of important information without going back & forth to you with additional questions like:
-
-- version of Webpack used
-- version of the loader / plugin you are creating a bug report for
-- the use-case that fails
-
-A minimal reproduce scenario allows us to quickly confirm a bug (or point out config problems) as well as confirm that we are fixing the right problem.
-
-We will be insisting on a minimal reproduction scenario in order to save the maintainers' time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essential bits of code from a larger codebase, but we really need to isolate the problem before we can fix it.
-
-Unfortunately, we are unable to investigate or fix bugs without a minimal reproduction, so if we don't hear back from you, we may have to close an issue that doesn't have enough info to be reproduced.
-
-## Feature Requests?
-
-You can _request_ a new feature by creating an issue on GitHub.
-
-If you would like to _implement_ a new feature yourself, please **first submit an issue** with a proposal to ensure the idea aligns with the goals of the project.
-
-## Pull Request Submission Guidelines
-
-Before you submit your Pull Request (PR) consider the following guidelines:
-
-- Search GitHub for an open or closed PR related to your submission to avoid duplicating effort.
-- Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). This is important because release notes are automatically generated from these messages.
-- Complete the `Pull Request Template`. Pull requests that ignore the template will not be reviewed.
-- Please sign the `Contributor License Agreement (CLA)` when you open your pull request. We cannot accept your contribution without it. Be sure to sign using the primary email address associated with your local and GitHub account.
-
-## Webpack Contrib Commit Conventions
-
-Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
-format that includes a **type**, a **scope** and a **subject**:
-
-```
-():
-
-
-
-
-```
-
-The **header** is mandatory and the **scope** of the header is optional.
-
-No line in the commit message should exceed 100 characters! This makes the message easier to read on GitHub as well as in various Git tools.
-
-The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
-
-Examples:
-
-```
-docs(readme): update install instructions
-```
-
-```
-fix: refer to the `entrypoint` instead of the first `module`
-```
-
-### Revert
-
-If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit.
-In the body it should say: `This reverts commit .`, where the hash is the SHA of the commit being reverted.
-
-### Type
-
-Must be one of the following commit types:
-
-- **build**: Changes that affect the build system or external dependencies (example scopes: babel, npm)
-- **chore**: Changes that fall outside of build / docs that do not effect source code (example scopes: package, defaults)
-- **ci**: Changes to our CI configuration files and scripts (example scopes: circleci, travis)
-- **docs**: Documentation only changes (example scopes: readme, changelog)
-- **feat**: A new feature
-- **fix**: A bug fix
-- **perf**: A code change that improves performance
-- **refactor**: A code change that neither fixes a bug nor adds a feature
-- **revert**: Used when reverting a committed change
-- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons)
-- **test**: Addition of or updates to Jest tests
-
-### Scope
-
-The scope is subjective & depends on the `type` see above. A good example of a scope would be a change to a particular class or module.
-
-### Subject
-
-The subject contains a succinct description of the change:
-
-- use the imperative, present tense: "change" not "changed" or "changes"
-- don't capitalize the first letter
-- no dot (.) at the end
-
-### Body
-
-Just as in the **subject**, use the imperative, present tense: "change" not "changed" or "changes".
-The body should include the motivation for the change and contrast it with previous behavior.
-
-### Footer
-
-The footer should include any information about **Breaking Changes** and is also the place to reference GitHub issues that this commit **Closes**.
-
-**Breaking Changes** must start with the word `BREAKING CHANGE:` followed by a space or two new lines. The rest of the breaking change details should be provided after this.
-
-Example
-
-```
-BREAKING CHANGE: Updates to `Chunk.mapModules`.
-
-This release is not backwards compatible with `Webpack 2.x` due to breaking changes in webpack/webpack#4764
-Migration: see webpack/webpack#5225
-
-```
-
-## Testing Your Pull Request
-
-You may need to test your changes in a real-world project or a dependent module. Thankfully, GitHub provides a means to do this. To add a dependency to the `package.json` of such a project, use the following syntax:
-
-```json
-{
- "devDependencies": {
- "html-loader": "ryanclark/html-loader#{id}/head"
- }
-}
-```
-
-Where `{id}` is the # ID of your Pull Request.
-
-## Contributor License Agreement
-
-When submitting your contribution, a CLA (Contributor License Agreement) bot will verify whether you have signed the [CLA](https://easycla.lfx.linuxfoundation.org/#/?version=2).
-If it is your first time, it will link you to the right place to sign it.
-However, if the email used in your commits doesn’t match the email associated with your GitHub account, the CLA bot won’t accept your contribution.
-
-Run `Git config user.email` to see your Git email, and verify it with [your GitHub email](https://github.com/settings/emails).
-
-## Thanks
-
-For your interest, time, understanding, and for following this simple guide.
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 5e7c7b6d..00000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1 +0,0 @@
-open_collective: webpack
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index f92d3cb0..00000000
--- a/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/.github/ISSUE_TEMPLATE/BUG.md b/.github/ISSUE_TEMPLATE/BUG.md
deleted file mode 100644
index 931d2e2e..00000000
--- a/.github/ISSUE_TEMPLATE/BUG.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-name: 🐛 Bug Report
-about: Something went awry and you'd like to tell us about it.
----
-
-
-
-
-### Bug report
-
-
-
-
-
-
-### Actual Behavior
-
-
-
-### Expected Behavior
-
-
-
-
-### How Do We Reproduce?
-
-
-
-
-
-
-
-### Please paste the results of `npx webpack-cli info` here, and mention other relevant information.
diff --git a/.github/ISSUE_TEMPLATE/DOCS.md b/.github/ISSUE_TEMPLATE/DOCS.md
deleted file mode 100644
index 1f9fad79..00000000
--- a/.github/ISSUE_TEMPLATE/DOCS.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-name: 📚 Documentation
-about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
----
-
-
-
-
-Documentation is:
-
-
-
-- [ ] Missing
-- [ ] Needed
-- [ ] Confusing
-- [ ] Not Sure?
-
-### Please Explain in Detail...
-
-
-
-
-
-
-### Your Proposal for Changes
diff --git a/.github/ISSUE_TEMPLATE/FEATURE.md b/.github/ISSUE_TEMPLATE/FEATURE.md
deleted file mode 100644
index d1e618fe..00000000
--- a/.github/ISSUE_TEMPLATE/FEATURE.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: ✨ Feature Request
-about: Suggest an idea for this project
----
-
-
-
-
-### Feature Proposal
-
-
-
-
-
-
-### Feature Use Case
-
-
-
-### Please paste the results of `npx webpack-cli info` here, and mention other relevant information.
diff --git a/.github/ISSUE_TEMPLATE/MODIFICATION.md b/.github/ISSUE_TEMPLATE/MODIFICATION.md
deleted file mode 100644
index 35602449..00000000
--- a/.github/ISSUE_TEMPLATE/MODIFICATION.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-name: 🔧 Modification Request
-about: Want something to work differently? Have an alternative approach? This is the template for you.
----
-
-
-
-
-### Modification Proposal
-
-
-
-
-
-
-
-### Expected Behavior / Situation
-
-
-
-### Actual Behavior / Situation
-
-
-
-### Please paste the results of `npx webpack-cli info` here, and mention other relevant information.
diff --git a/.github/ISSUE_TEMPLATE/SUPPORT.md b/.github/ISSUE_TEMPLATE/SUPPORT.md
deleted file mode 100644
index 066348a5..00000000
--- a/.github/ISSUE_TEMPLATE/SUPPORT.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-name: 🆘 Support, Help, and Advice
-about: 👉🏽 Need support, help, or advice? Don't open an issue - visit "GitHub Discussions" or "Stack Overflow" instead.
----
-
-Hey there! 👋
-
-If you need support, help, or advice then this is not the right place to ask.
-
-Please visit one of the following instead:
-
-- [GitHub Discussions](https://github.com/webpack/webpack/discussions)
-- [Stack Overflow](https://stackoverflow.com/questions/tagged/webpack)
-
-Thanks for understanding!
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 550abc2c..00000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-This PR contains a:
-
-- [ ] **bugfix**
-- [ ] new **feature**
-- [ ] **code refactor**
-- [ ] **test update**
-- [ ] **typo fix**
-- [ ] **metadata update**
-
-### Motivation / Use-Case
-
-
-
-### Breaking Changes
-
-
-
-### Additional Info
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index 2f99920c..8f161e91 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -3,11 +3,11 @@ name: html-loader
on:
push:
branches:
- - master
+ - main
- next
pull_request:
branches:
- - master
+ - main
- next
permissions:
diff --git a/README.md b/README.md
index 6d0645b1..17a2d059 100644
--- a/README.md
+++ b/README.md
@@ -1160,10 +1160,10 @@ If you're new here, please take a moment to review our contributing guidelines b
[npm-url]: https://npmjs.com/package/html-loader
[node]: https://img.shields.io/node/v/html-loader.svg
[node-url]: https://nodejs.org
-[tests]: https://github.com/webpack-contrib/html-loader/workflows/html-loader/badge.svg
-[tests-url]: https://github.com/webpack-contrib/html-loader/actions
-[cover]: https://codecov.io/gh/webpack-contrib/html-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/html-loader
+[tests]: https://github.com/webpack/html-loader/workflows/html-loader/badge.svg
+[tests-url]: https://github.com/webpack/html-loader/actions
+[cover]: https://codecov.io/gh/webpack/html-loader/branch/main/graph/badge.svg
+[cover-url]: https://codecov.io/gh/webpack/html-loader
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
[discussion-url]: https://github.com/webpack/webpack/discussions
[size]: https://packagephobia.now.sh/badge?p=html-loader
diff --git a/package.json b/package.json
index 197f820e..7365f49d 100644
--- a/package.json
+++ b/package.json
@@ -7,9 +7,9 @@
"html",
"loader"
],
- "homepage": "https://github.com/webpack-contrib/html-loader",
- "bugs": "https://github.com/webpack-contrib/html-loader/issues",
- "repository": "webpack-contrib/html-loader",
+ "homepage": "https://github.com/webpack/html-loader",
+ "bugs": "https://github.com/webpack/html-loader/issues",
+ "repository": "webpack/html-loader",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
@@ -27,7 +27,7 @@
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"postbuild": "npm run validate:runtime",
- "commitlint": "commitlint --from=master",
+ "commitlint": "commitlint --from=main",
"security": "npm audit --production",
"lint:prettier": "prettier --cache --list-different .",
"lint:js": "eslint --cache .",
diff --git a/src/options.json b/src/options.json
index 1af321ca..2cb3b408 100644
--- a/src/options.json
+++ b/src/options.json
@@ -43,12 +43,12 @@
"preprocessor": {
"instanceof": "Function",
"description": "Allows pre-processing of content before handling.",
- "link": "https://github.com/webpack-contrib/html-loader#preprocessor"
+ "link": "https://github.com/webpack/html-loader#preprocessor"
},
"postprocessor": {
"instanceof": "Function",
"description": "Allows post-processing of content before handling.",
- "link": "https://github.com/webpack-contrib/html-loader#postprocessor"
+ "link": "https://github.com/webpack/html-loader#postprocessor"
},
"sources": {
"anyOf": [
@@ -70,17 +70,17 @@
}
],
"description": "By default every loadable attributes (for example - ) is imported (const img = require('./image.png'). You may need to specify loaders for images in your configuration.",
- "link": "https://github.com/webpack-contrib/html-loader#sources"
+ "link": "https://github.com/webpack/html-loader#sources"
},
"minimize": {
"anyOf": [{ "type": "boolean" }, { "type": "object" }],
"description": "Tell html-loader to minimize HTML.",
- "link": "https://github.com/webpack-contrib/html-loader#minimize"
+ "link": "https://github.com/webpack/html-loader#minimize"
},
"esModule": {
"type": "boolean",
"description": "Enable or disable ES modules syntax.",
- "link": "https://github.com/webpack-contrib/html-loader#esmodule"
+ "link": "https://github.com/webpack/html-loader#esmodule"
}
},
"additionalProperties": false
diff --git a/src/utils.js b/src/utils.js
index 732d8d7b..c5a8b68d 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -580,8 +580,8 @@ export const defaultMinimizerOptions = {
// `minifyURLs` is unsafe, because we can't guarantee what the base URL is
// `removeAttributeQuotes` is not safe in some rare cases, also HTML spec recommends against doing this
removeComments: true,
- // `removeEmptyAttributes` is not safe, can affect certain style or script behavior, look at https://github.com/webpack-contrib/html-loader/issues/323
- // `removeRedundantAttributes` is not safe, can affect certain style or script behavior, look at https://github.com/webpack-contrib/html-loader/issues/323
+ // `removeEmptyAttributes` is not safe, can affect certain style or script behavior, look at https://github.com/webpack/html-loader/issues/323
+ // `removeRedundantAttributes` is not safe, can affect certain style or script behavior, look at https://github.com/webpack/html-loader/issues/323
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
// `useShortDoctype` is not safe for XHTML
diff --git a/test/__snapshots__/esModule-option.test.js.snap b/test/__snapshots__/esModule-option.test.js.snap
index b7ae00fe..8be648f4 100644
--- a/test/__snapshots__/esModule-option.test.js.snap
+++ b/test/__snapshots__/esModule-option.test.js.snap
@@ -134,7 +134,7 @@ var code = \`
-
+
@@ -482,7 +482,7 @@ alt" />
-
+
@@ -593,7 +593,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -941,7 +941,7 @@ alt" />
-
+
@@ -1083,7 +1083,7 @@ var code = \`
-
+
@@ -1434,7 +1434,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -1545,7 +1545,7 @@ exports[`'esModule' option should use a CommonJS export when the value is "false
-
+
@@ -1896,7 +1896,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -2040,7 +2040,7 @@ var code = \`
-
+
@@ -2388,7 +2388,7 @@ alt" />
-
+
@@ -2499,7 +2499,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -2847,7 +2847,7 @@ alt" />
-
+
diff --git a/test/__snapshots__/loader.test.js.snap b/test/__snapshots__/loader.test.js.snap
index edb7ea21..a3a4c90a 100644
--- a/test/__snapshots__/loader.test.js.snap
+++ b/test/__snapshots__/loader.test.js.snap
@@ -147,7 +147,7 @@ var ___HTML_LOADER_IMPORT_5___ = new URL("./image.png?foo=bar,baz", import.meta.
var ___HTML_LOADER_IMPORT_6___ = new URL("./image.png?bar=baz,foo", import.meta.url);
var ___HTML_LOADER_IMPORT_7___ = new URL("./example.ogg", import.meta.url);
var ___HTML_LOADER_IMPORT_8___ = new URL("./example.pdf", import.meta.url);
-var ___HTML_LOADER_IMPORT_9___ = new URL("https://github.com/webpack-contrib/css-loader/blob/master/src/index.js", import.meta.url);
+var ___HTML_LOADER_IMPORT_9___ = new URL("https://github.com/webpack/css-loader/blob/main/src/index.js", import.meta.url);
var ___HTML_LOADER_IMPORT_10___ = new URL("./example.vtt", import.meta.url);
var ___HTML_LOADER_IMPORT_11___ = new URL("./style.file.css", import.meta.url);
var ___HTML_LOADER_IMPORT_12___ = new URL("data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", import.meta.url);
@@ -166,7 +166,7 @@ var ___HTML_LOADER_IMPORT_24___ = new URL("./video.mp4", import.meta.url);
var ___HTML_LOADER_IMPORT_25___ = new URL("./nested/image3.png", import.meta.url);
var ___HTML_LOADER_IMPORT_26___ = new URL("/nested/image3.png", import.meta.url);
var ___HTML_LOADER_IMPORT_27___ = new URL("./noscript.png", import.meta.url);
-var ___HTML_LOADER_IMPORT_28___ = new URL("https://raw.githubusercontent.com/webpack-contrib/html-loader/master/test/fixtures/image.png", import.meta.url);
+var ___HTML_LOADER_IMPORT_28___ = new URL("https://raw.githubusercontent.com/webpack/html-loader/main/test/fixtures/image.png", import.meta.url);
var ___HTML_LOADER_IMPORT_29___ = new URL("./😀abc.png", import.meta.url);
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js";
// Module
@@ -729,7 +729,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -1514,7 +1514,7 @@ var code = \`
-
+
@@ -1862,7 +1862,7 @@ alt" />
-
+
@@ -1973,7 +1973,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -2321,7 +2321,7 @@ alt" />
-
+
diff --git a/test/__snapshots__/minimize-option.test.js.snap b/test/__snapshots__/minimize-option.test.js.snap
index a49edc7c..c47341ab 100644
--- a/test/__snapshots__/minimize-option.test.js.snap
+++ b/test/__snapshots__/minimize-option.test.js.snap
@@ -134,7 +134,7 @@ var code = \`
-
+
@@ -482,7 +482,7 @@ alt" />
-
+
@@ -593,7 +593,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -941,7 +941,7 @@ alt" />
-
+
@@ -1085,7 +1085,7 @@ var code = \`
-
+
@@ -1433,7 +1433,7 @@ alt" />
-
+
@@ -1544,7 +1544,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -1892,7 +1892,7 @@ alt" />
-
+
@@ -1936,17 +1936,17 @@ var ___HTML_LOADER_IMPORT_26___ = new URL("./noscript.png", import.meta.url);
var ___HTML_LOADER_IMPORT_27___ = new URL("./😀abc.png", import.meta.url);
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js";
// Module
-var code = \` My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? \`;
+alt"/> \`;
// Exports
export default code;"
`;
exports[`"minimize" option should be turned on in "production" mode: result 1`] = `
-" My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? "
+alt"/> "
`;
exports[`"minimize" option should be turned on in "production" mode: warnings 1`] = `[]`;
@@ -2123,7 +2123,7 @@ var code = \`
-
+
@@ -2471,7 +2471,7 @@ alt" />
-
+
@@ -2582,7 +2582,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -2930,7 +2930,7 @@ alt" />
-
+
@@ -2974,21 +2974,21 @@ var ___HTML_LOADER_IMPORT_26___ = new URL("./noscript.png", import.meta.url);
var ___HTML_LOADER_IMPORT_27___ = new URL("./😀abc.png", import.meta.url);
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js";
// Module
-var code = \` My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
]]> link text Call me --> --> Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
]]> link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? \`;
+alt"/> \`;
// Exports
export default code;"
`;
exports[`"minimize" option should support options for minimizer: result 1`] = `
-" My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
]]> link text Call me --> --> Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
]]> link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? "
+alt"/> "
`;
exports[`"minimize" option should support options for minimizer: warnings 1`] = `[]`;
@@ -3040,17 +3040,17 @@ var ___HTML_LOADER_IMPORT_26___ = new URL("./noscript.png", import.meta.url);
var ___HTML_LOADER_IMPORT_27___ = new URL("./😀abc.png", import.meta.url);
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js";
// Module
-var code = \` My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? \`;
+alt"/> \`;
// Exports
export default code;"
`;
exports[`"minimize" option should work with a value equal to "true": result 1`] = `
-" My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? My First Heading My first paragraph.
An Unordered HTML List An Ordered HTML List Coffee Tea Milk Foo
BAR
Your browser does not support the audio element. Your browser does not support the audio element. Your browser does not support the video tag. T ex t
link text Call me --> --> <div id = "character"> © 2007 or © 2007 Written by Jon Doe. Visit us at: Example.com Box 564, Disneyland USA link Start Chat Start Chat Start Chat Test test test test Text
Text
Text
foo bar Text Text Visit our HTML tutorial Visit our HTML tutorial text
text
The time is? "
+alt"/> "
`;
exports[`"minimize" option should work with a value equal to "true": warnings 1`] = `[]`;
diff --git a/test/__snapshots__/sources-option.test.js.snap b/test/__snapshots__/sources-option.test.js.snap
index a743c671..2072af35 100644
--- a/test/__snapshots__/sources-option.test.js.snap
+++ b/test/__snapshots__/sources-option.test.js.snap
@@ -133,7 +133,7 @@ var code = \`
-
+
@@ -481,7 +481,7 @@ alt" />
-
+
@@ -592,7 +592,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -940,7 +940,7 @@ alt" />
-
+
@@ -2207,7 +2207,7 @@ image.png 2x
-
+
@@ -2562,7 +2562,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -2673,7 +2673,7 @@ image.png 2x
-
+
@@ -3028,7 +3028,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -3165,7 +3165,7 @@ image.png 2x
-
+
@@ -3513,7 +3513,7 @@ alt" />
-
+
@@ -3624,7 +3624,7 @@ image.png 2x
-
+
@@ -3972,7 +3972,7 @@ alt" />
-
+
@@ -4116,7 +4116,7 @@ var code = \`
-
+
@@ -4464,7 +4464,7 @@ alt" />
-
+
@@ -4575,7 +4575,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -4923,7 +4923,7 @@ alt" />
-
+
@@ -5037,7 +5037,7 @@ image.png 2x
-
+
@@ -5392,7 +5392,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -5503,7 +5503,7 @@ image.png 2x
-
+
@@ -5858,7 +5858,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -6001,7 +6001,7 @@ var code = \`
-
+
@@ -6349,7 +6349,7 @@ alt" />
-
+
@@ -6460,7 +6460,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -6808,7 +6808,7 @@ alt" />
-
+
@@ -6943,7 +6943,7 @@ var code = \`
-
+
@@ -7298,7 +7298,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -7409,7 +7409,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -7764,7 +7764,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -7925,7 +7925,7 @@ var code = \`
-
+
@@ -8276,7 +8276,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -8387,7 +8387,7 @@ exports[`'sources' option should work by default with CommonJS module syntax and
-
+
@@ -8738,7 +8738,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -8880,7 +8880,7 @@ var code = \`
-
+
@@ -9231,7 +9231,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -9342,7 +9342,7 @@ exports[`'sources' option should work by default with CommonJS module syntax: re
-
+
@@ -9693,7 +9693,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -9837,7 +9837,7 @@ var code = \`
-
+
@@ -10185,7 +10185,7 @@ alt" />
-
+
@@ -10296,7 +10296,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -10644,7 +10644,7 @@ alt" />
-
+
@@ -10788,7 +10788,7 @@ var code = \`
-
+
@@ -11136,7 +11136,7 @@ alt" />
-
+
@@ -11247,7 +11247,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -11595,7 +11595,7 @@ alt" />
-
+
@@ -11739,7 +11739,7 @@ var code = \`
-
+
@@ -12087,7 +12087,7 @@ alt" />
-
+
@@ -12198,7 +12198,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -12546,7 +12546,7 @@ alt" />
-
+
@@ -12671,7 +12671,7 @@ image.png 2x
-
+
@@ -13026,7 +13026,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -13137,7 +13137,7 @@ image.png 2x
-
+
@@ -13492,7 +13492,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
-
+
@@ -13635,7 +13635,7 @@ var code = \`
-
+
@@ -13983,7 +13983,7 @@ alt" />
-
+
@@ -14094,7 +14094,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -14442,7 +14442,7 @@ alt" />
-
+
@@ -14571,7 +14571,7 @@ image.png 2x
-
+
@@ -14919,7 +14919,7 @@ alt" />
-
+
@@ -15030,7 +15030,7 @@ image.png 2x
-
+
@@ -15378,7 +15378,7 @@ alt" />
-
+
@@ -15521,7 +15521,7 @@ var code = \`
-
+
@@ -15869,7 +15869,7 @@ alt" />
-
+
@@ -15980,7 +15980,7 @@ replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png 2x
-
+
@@ -16328,7 +16328,7 @@ alt" />
-
+
diff --git a/test/__snapshots__/validate-options.test.js.snap b/test/__snapshots__/validate-options.test.js.snap
index 9db8c393..eb4ab312 100644
--- a/test/__snapshots__/validate-options.test.js.snap
+++ b/test/__snapshots__/validate-options.test.js.snap
@@ -4,7 +4,7 @@ exports[`validate options should throw an error on the "esModule" option with "t
"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
- options.esModule should be a boolean.
-> Enable or disable ES modules syntax.
- -> Read more at https://github.com/webpack-contrib/html-loader#esmodule"
+ -> Read more at https://github.com/webpack/html-loader#esmodule"
`;
exports[`validate options should throw an error on the "minimize" option with "true" value 1`] = `
@@ -12,7 +12,7 @@ exports[`validate options should throw an error on the "minimize" option with "t
- options.minimize should be one of these:
boolean | object { … }
-> Tell html-loader to minimize HTML.
- -> Read more at https://github.com/webpack-contrib/html-loader#minimize
+ -> Read more at https://github.com/webpack/html-loader#minimize
Details:
* options.minimize should be a boolean.
* options.minimize should be an object:
@@ -23,7 +23,7 @@ exports[`validate options should throw an error on the "preprocessor" option wit
"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
- options.preprocessor should be an instance of function.
-> Allows pre-processing of content before handling.
- -> Read more at https://github.com/webpack-contrib/html-loader#preprocessor"
+ -> Read more at https://github.com/webpack/html-loader#preprocessor"
`;
exports[`validate options should throw an error on the "sources" option with "[]" value 1`] = `
@@ -31,7 +31,7 @@ exports[`validate options should throw an error on the "sources" option with "[]
- options.sources should be one of these:
boolean | object { list?, urlFilter?, scriptingEnabled? }
-> By default every loadable attributes (for example - ) is imported (const img = require('./image.png'). You may need to specify loaders for images in your configuration.
- -> Read more at https://github.com/webpack-contrib/html-loader#sources
+ -> Read more at https://github.com/webpack/html-loader#sources
Details:
* options.sources should be a boolean.
* options.sources should be an object:
@@ -85,7 +85,7 @@ exports[`validate options should throw an error on the "sources" option with "tr
- options.sources should be one of these:
boolean | object { list?, urlFilter?, scriptingEnabled? }
-> By default every loadable attributes (for example - ) is imported (const img = require('./image.png'). You may need to specify loaders for images in your configuration.
- -> Read more at https://github.com/webpack-contrib/html-loader#sources
+ -> Read more at https://github.com/webpack/html-loader#sources
Details:
* options.sources should be a boolean.
* options.sources should be an object:
diff --git a/test/fixtures/simple.html b/test/fixtures/simple.html
index d2302e40..e89481f3 100644
--- a/test/fixtures/simple.html
+++ b/test/fixtures/simple.html
@@ -98,7 +98,7 @@ An Ordered HTML List
-
+
@@ -453,7 +453,7 @@ An Ordered HTML List
-
+
diff --git a/test/outputs/url/https_github.com/webpack-contrib_css-loader_blob_master_src_index_c9784a6436645af20518.js b/test/outputs/url/https_github.com/webpack-contrib_css-loader_blob_master_src_index_c9784a6436645af20518.js
index f05af19b..dd66dbd3 100644
--- a/test/outputs/url/https_github.com/webpack-contrib_css-loader_blob_master_src_index_c9784a6436645af20518.js
+++ b/test/outputs/url/https_github.com/webpack-contrib_css-loader_blob_master_src_index_c9784a6436645af20518.js
@@ -104,7 +104,7 @@
- css-loader/src/index.js at master · webpack-contrib/css-loader · GitHub
+ css-loader/src/index.js at main · webpack/css-loader · GitHub
@@ -148,16 +148,16 @@
-
+
-
+
-
-
+
+
@@ -181,9 +181,9 @@
-
+
-
+
@@ -278,9 +278,9 @@