Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/file-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 011cc38d4ed470729ff0fbc6c1d7146896603598
Choose a base ref
...
head repository: webpack-contrib/file-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e44eb73eaf519aaf44f9eace2fecc95f700159c6
Choose a head ref

Commits on Dec 27, 2018

  1. Copy the full SHA
    5545075 View commit details

Commits on Jan 10, 2019

  1. Copy the full SHA
    d699243 View commit details

Commits on Apr 23, 2019

  1. Copy the full SHA
    aad7a29 View commit details

Commits on Jun 5, 2019

  1. chore(deps): update (#333)

    BREAKING CHANGE: minimum required nodejs version is `8.9.0`
    evilebottnawi authored Jun 5, 2019
    Copy the full SHA
    0d2f9b8 View commit details
  2. Copy the full SHA
    d016daa View commit details

Commits on Jul 18, 2019

  1. Copy the full SHA
    705eed4 View commit details
  2. chore(release): 4.1.0

    alexander-akait committed Jul 18, 2019
    Copy the full SHA
    d441daa View commit details

Commits on Aug 6, 2019

  1. Copy the full SHA
    c136f44 View commit details

Commits on Aug 7, 2019

  1. Copy the full SHA
    642ee74 View commit details
  2. Copy the full SHA
    ba0fd4c View commit details

Commits on Nov 21, 2019

  1. Copy the full SHA
    9b9cd8d View commit details
  2. refactor: code (#344)

    evilebottnawi authored Nov 21, 2019
    Copy the full SHA
    a2f5faf View commit details
  3. chore(release): 4.3.0

    alexander-akait committed Nov 21, 2019
    Copy the full SHA
    0df6c8d View commit details

Commits on Nov 22, 2019

  1. refactor: next (#345)

    evilebottnawi authored Nov 22, 2019
    2
    Copy the full SHA
    98a6c1d View commit details

Commits on Nov 25, 2019

  1. chore(release): 5.0.0

    alexander-akait committed Nov 25, 2019
    Copy the full SHA
    2a18cba View commit details
  2. 6
    Copy the full SHA
    31d6589 View commit details
  3. chore(release): 5.0.1

    alexander-akait committed Nov 25, 2019
    Copy the full SHA
    90302cd View commit details
  4. Copy the full SHA
    6431101 View commit details
  5. chore(release): 5.0.2

    alexander-akait committed Nov 25, 2019
    Copy the full SHA
    f1b071c View commit details
  6. Copy the full SHA
    190829e View commit details

Commits on Dec 30, 2019

  1. Copy the full SHA
    5ffac2e View commit details
  2. Copy the full SHA
    521bff2 View commit details

Commits on Feb 19, 2020

  1. Copy the full SHA
    5703c58 View commit details
  2. Copy the full SHA
    cd8698b View commit details
  3. chore(release): 5.1.0

    alexander-akait committed Feb 19, 2020
    Copy the full SHA
    c2aded7 View commit details

Commits on Mar 17, 2020

  1. docs: update README.md (#368)

    xoyimi authored Mar 17, 2020
    Copy the full SHA
    e1fe27c View commit details
  2. chore(deps): update (#369)

    BREAKING CHANGE: use `md4` by default for hashing
    evilebottnawi authored Mar 17, 2020
    Copy the full SHA
    ad39022 View commit details
  3. chore(release): 6.0.0

    alexander-akait committed Mar 17, 2020
    Copy the full SHA
    e44eb73 View commit details
Showing with 9,257 additions and 6,870 deletions.
  1. +0 −145 .circleci/config.yml
  2. +1 −2 .editorconfig
  3. +3 −1 .eslintignore
  4. +1 −8 .eslintrc.js
  5. +77 −41 .github/CONTRIBUTING.md
  6. +1 −0 .github/FUNDING.yml
  7. +10 −11 .github/ISSUE_TEMPLATE/BUG.md
  8. +1 −3 .github/ISSUE_TEMPLATE/DOCS.md
  9. +6 −9 .github/ISSUE_TEMPLATE/FEATURE.md
  10. +6 −12 .github/ISSUE_TEMPLATE/MODIFICATION.md
  11. +1 −2 .github/ISSUE_TEMPLATE/SUPPORT.md
  12. +5 −0 .prettierignore
  13. +0 −5 .prettierrc
  14. +5 −0 .prettierrc.js
  15. +81 −1 CHANGELOG.md
  16. +256 −48 README.md
  17. +0 −41 appveyor.yml
  18. +200 −0 azure-pipelines.yml
  19. +19 −0 babel.config.js
  20. +3 −0 commitlint.config.js
  21. +6 −0 husky.config.js
  22. +4 −0 lint-staged.config.js
  23. +7,138 −5,585 package-lock.json
  24. +47 −71 package.json
  25. +22 −9 src/index.js
  26. +14 −8 src/options.json
  27. +11 −1 test/__snapshots__/context-option.test.js.snap
  28. +37 −1 test/__snapshots__/emitFile-option.test.js.snap
  29. +0 −51 test/__snapshots__/errors.test.js.snap
  30. +19 −0 test/__snapshots__/esModule-option.test.js.snap
  31. +48 −3 test/__snapshots__/loader.test.js.snap
  32. +22 −2 test/__snapshots__/name-option.test.js.snap
  33. +119 −93 test/__snapshots__/outputPath-option.test.js.snap
  34. +55 −0 test/__snapshots__/postTransformPublicPath-option.test.js.snap
  35. +23 −56 test/__snapshots__/publicPath-option.test.js.snap
  36. +59 −0 test/__snapshots__/validate-options.test.js.snap
  37. +5 −5 test/cjs.test.js
  38. +38 −15 test/context-option.test.js
  39. +47 −30 test/emitFile-option.test.js
  40. +0 −57 test/errors.test.js
  41. +52 −0 test/esModule-option.test.js
  42. +6 −0 test/fixtures/cdn.js
  43. +0 −4 test/fixtures/emitFile/fixture.js
  44. BIN test/fixtures/file.gif
  45. BIN test/fixtures/file.jpg
  46. +0 −48 test/fixtures/file.svg
  47. +0 −4 test/fixtures/fixture.js
  48. BIN test/fixtures/nested/{assets → }/file.png
  49. +0 −4 test/fixtures/nested/fixture.js
  50. +6 −0 test/fixtures/simple.js
  51. +11 −0 test/helpers/compile.js
  52. +0 −71 test/helpers/compiler.js
  53. +22 −0 test/helpers/execute.js
  54. +45 −0 test/helpers/getCompiler.js
  55. +7 −0 test/helpers/index.js
  56. +25 −0 test/helpers/normalizeErrors.js
  57. +15 −0 test/helpers/readAsset.js
  58. +98 −59 test/loader.test.js
  59. +76 −30 test/name-option.test.js
  60. +178 −218 test/outputPath-option.test.js
  61. +165 −0 test/postTransformPublicPath-option.test.js
  62. +77 −116 test/publicPath-option.test.js
  63. +84 −0 test/validate-options.test.js
145 changes: 0 additions & 145 deletions .circleci/config.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -9,5 +9,4 @@ insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = true
trim_trailing_whitespace = false
trim_trailing_whitespace = false
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/coverage
/dist
/node_modules
/dist
/test/fixtures
9 changes: 1 addition & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
module.exports = {
root: true,
plugins: ['prettier'],
extends: ['@webpack-contrib/eslint-config-webpack'],
rules: {
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
],
},
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
};
118 changes: 77 additions & 41 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
## Contributing in @webpack-contrib
# Contributing in @webpack-contrib

We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
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)
- [Questions and Problems](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Pull Request Submission Guidelines](#submit-pr)
- [Commit Message Conventions](#commit)

### <a name="question"></a> Got a Question or Problem?
## <a name="question"></a> 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).
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.

### <a name="issue"></a> Found an Issue or Bug?
## <a name="issue"></a> Found an Issue or Bug?

Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.

@@ -31,13 +31,13 @@ We will be insisting on a minimal reproduce scenario in order to save maintainer

Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.

### <a name="feature"></a> Feature Requests?
## <a name="feature"></a> Feature Requests?

You can *request* a new feature by creating an issue on Github.
You can _request_ a new feature by creating an issue on Github.

If you would like to *implement* a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project.
If you would like to _implement_ a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project.

### <a name="submit-pr"></a> Pull Request Submission Guidelines
## <a name="submit-pr"></a> Pull Request Submission Guidelines

Before you submit your Pull Request (PR) consider the following guidelines:

@@ -46,9 +46,9 @@ Before you submit your Pull Request (PR) consider the following guidelines:
- Fill out our `Pull Request Template`. Your pull request will not be considered if it is ignored.
- Please sign the `Contributor License Agreement (CLA)` when a pull request is opened. We cannot accept your pull request without this. Make sure you sign with the primary email address associated with your local / github account.

### <a name="commit"></a> Webpack Contrib Commit Conventions
## <a name="commit"></a> Webpack Contrib Commit Conventions

Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
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**:

```
@@ -66,48 +66,56 @@ 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:
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.
### 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 <hash>.`, where the hash is the SHA of the commit being reverted.

#### Type
### Type

Must be one of the following:

* **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
- **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 would be a change to a particular class / module.

#### Subject
### Subject

The subject contains a succinct description of the change:

* use the imperative, present tense: "change" not "changed" nor "changes"
* don't capitalize the first letter
* no dot (.) at the end
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter
- no dot (.) at the end

### Body

#### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
The body should include the motivation for the change and contrast this with previous behavior.

#### Footer
### Footer

The footer should contain any information about **Breaking Changes** and is also the place to
reference GitHub issues that this commit **Closes**.

@@ -116,9 +124,37 @@ reference GitHub issues that this commit **Closes**.
Example

```
BREAKING CHANGE: Updates to `Chunk.mapModules`.
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 have the need to test your changes in a real-world project or dependent
module. Thankfully, Github provides a means to do this. Add a dependency to the
`package.json` for such a project as follows:

```json
{
"devDependencies": {
"file-loader": "webpack-contrib/file-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 come by to verify that you signed the [CLA](https://cla.js.foundation/webpack-contrib/file-loader).
If it is your first time, it will link you to the right place to sign it.
However, if you have committed your contributions using an email that is not the same as your email used on GitHub, the CLA bot can'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.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: webpack
Loading