Skip to content
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: shellscape/webpack-manifest-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.0
Choose a base ref
...
head repository: shellscape/webpack-manifest-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.1
Choose a head ref
  • 9 commits
  • 20 files changed
  • 5 contributors

Commits on Mar 24, 2022

  1. Verified

    This commit was signed with the committer’s verified signature.
    cfvescovo Carlo Federico Vescovo
    Copy the full SHA
    6a52160 View commit details

Commits on Dec 19, 2022

  1. Copy the full SHA
    bf6bc35 View commit details
  2. Copy the full SHA
    14aedeb View commit details

Commits on Jun 19, 2023

  1. Copy the full SHA
    f4ea348 View commit details
  2. Copy the full SHA
    9a39d31 View commit details
  3. fix: only import webpack types (#297)

    * remove webpack import
    
    * chore: rename _loaderContext
    
    ---------
    
    Co-authored-by: Andrew Powell <shellscape@users.noreply.github.com>
    Co-authored-by: shellscape <andrew@shellscape.org>
    3 people authored Jun 19, 2023
    Copy the full SHA
    64faade View commit details

Commits on Jun 11, 2024

  1. fix: Pass chunkGraph through in generate function (#300)

    * pass through chunkGraph in generate fn
    
    * add test
    
    * fix test
    
    ---------
    
    Co-authored-by: shellscape <andrew@shellscape.org>
    pgoldberg and shellscape authored Jun 11, 2024
    Copy the full SHA
    59feddb View commit details

Commits on Mar 11, 2025

  1. Copy the full SHA
    0323a4f View commit details
  2. chore(release): v5.0.1

    shellscape committed Mar 11, 2025
    Copy the full SHA
    b87cabc View commit details
2 changes: 1 addition & 1 deletion .github/workflows/node-windows.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node: ['16']
node: ['18']

name: Node v${{ matrix.node }}
steps:
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node: ['16', '14', '12']
node: ['20', '18', '16']

name: Node v${{ matrix.node }}

@@ -48,7 +48,7 @@ jobs:
run: pnpm security

- name: Build Packages
run: pnpm build --recursive
run: pnpm --recursive build

- name: Lint Repo
run: pnpm lint:js
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec lint-staged
10 changes: 10 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

# npm options
auth-type=legacy

# pnpm options
always-auth = true
auto-install-peers = true
enable-pre-post-scripts = true
link-workspace-packages = false
shamefully-hoist = true
shared-workspace-lockfile = true
strict-peer-dependencies = false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
18
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -81,6 +81,15 @@ With the default options, the example above will create a `manifest.json` file i

### Options

### `assetHookStage`

Type: `Number`<br>
Default: `Infinity`

If you need to consume the output of this plugin in another plugin, it can be useful to adjust the stage at which the manifest is generated. Pass a new stage to `assetHookStage` to change when the manifest is generated. See the [docs on `processAssets`](https://webpack.js.org/api/compilation-hooks/#list-of-asset-processing-stages) for more detail.

Note: any files added to the compilation after the stage specified will not be included in the manifest.

### `basePath`

Type: `String`<br>
@@ -230,15 +239,6 @@ This plugin supports the following hooks via the `getCompilerHooks` export; `aft

Returns: `{ afterEmit: SyncWaterfallHook, beforeEmit: SyncWaterfallHook }`

### `assetHookStage`

Type: `Number`
Default: `Infinity`

If you need to consume the output of this plugin in another plugin, it can be useful to adjust the stage at which the manifest is generated. Pass a new stage to `assetHookStage` to change when the manifest is generated. See the [docs on `processAssets`](https://webpack.js.org/api/compilation-hooks/#list-of-asset-processing-stages) for more detail.

Note: any files added to the compilation after the stage specified will not be included in the manifest.

#### Usage

```js
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-manifest-plugin",
"version": "5.0.0",
"version": "5.0.1",
"description": "A Webpack Plugin for generating Asset Manifests",
"license": "MIT",
"repository": "shellscape/webpack-manifest-plugin",
@@ -9,7 +9,7 @@
"bugs": "https://github.com/shellscape/webpack-manifest-plugin/issues",
"main": "dist/index.js",
"engines": {
"node": ">=12.22.0"
"node": ">=14"
},
"scripts": {
"build": "tsc --project tsconfig.json",
@@ -21,18 +21,19 @@
"lint:docs": "prettier --write README.md",
"lint:js": "eslint --cache --fix --cache src test",
"lint:json": "prettier --write codecov.yml package.json",
"prepare": "husky install",
"prepublishOnly": "pnpm lint && pnpm build",
"pretest": "pnpm build",
"pretest": "pnpm install && pnpm build",
"security": "pnpm audit --audit-level=high --prod",
"test": "pnpm install && ava"
"test": "ava --timeout=2m"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"peerDependencies": {
"webpack": "^5.47.0"
"webpack": "^5.75.0"
},
"dependencies": {
"tapable": "^2.0.0",
@@ -47,13 +48,13 @@
"@types/webpack": "^5.28.0",
"@types/webpack-sources": "^2.1.1",
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.0",
"ava": "^3.13.0",
"ava": "^5.1.0",
"codecov": "^3.1.0",
"copy-webpack-plugin": "^6.2.1",
"del": "^6.0.0",
"eslint-config-shellscape": "^4.2.0",
"eslint-config-shellscape": "^6.0.0",
"file-loader": "^6.2.0",
"husky": "4.3.8",
"husky": "8.0.2",
"lint-staged": "11.1.1",
"memory-fs": "^0.4.1",
"nyc": "^15.1.0",
@@ -64,9 +65,9 @@
"style-loader": "^0.23.0",
"ts-node": "^10.1.0",
"tslib": "^2.3.0",
"typescript": "^4.3.5",
"webpack": "^5.47.0",
"webpack-merge": "^5.2.0"
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-merge": "^5.8.0"
},
"ava": {
"files": [
Loading