@rushstack/webpack-plugin-utilities 0.1.26 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.29.2"
8
+ "packageVersion": "7.29.5"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/webpack-plugin-utilities",
3
- "version": "0.1.26",
3
+ "version": "0.1.29",
4
4
  "description": "This plugin sets the webpack public path at runtime.",
5
5
  "main": "lib/index.js",
6
6
  "typings": "dist/webpack-plugin-utilities.d.ts",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@rushstack/eslint-config": "3.0.0",
27
- "@rushstack/heft": "0.47.3",
28
- "@rushstack/heft-node-rig": "1.10.3",
27
+ "@rushstack/heft": "0.47.5",
28
+ "@rushstack/heft-node-rig": "1.10.6",
29
29
  "@types/heft-jest": "1.0.1",
30
30
  "@types/node": "12.20.24",
31
31
  "@types/tapable": "1.0.6",
@@ -34,6 +34,5 @@
34
34
  "scripts": {
35
35
  "build": "heft build --clean",
36
36
  "_phase:build": "heft build --clean"
37
- },
38
- "readme": "# webpack-plugin-utilities\n\n## Installation\n\n`npm install @rushstack/webpack-plugin-utilities --save`\n\n## Overview\n\nThis is a collection of utilities for writing webpack plugins\n\n# Usage\n\n```JavaScript\nimport { VersionDetection } from \"@rushstack/webpack-plugin-utilities\"\n\nclass MyExampleWebpackPlugin {\n constructor() {\n this.pluginName = \"MyExampleWebpackPlugin\"\n }\n\n apply(compiler) {\n if (VersionDetection.isWebpack3OrEarlier(compiler)) {\n throw new Error(`This plugin does not support webpack 3 or below.`)\n }\n\n const isWebpack4 = VersionDetection.isWebpack4(compiler);\n\n if (isWebpack4) {\n compiler.hooks.compilation.tap(this.pluginName, (compilation) => {\n // ....\n });\n } else {\n compiler.hooks.compilation.tap(this.pluginName, (compilation) => {\n // ...\n });\n }\n }\n}\n```\n\n## Links\n\n- [CHANGELOG.md](\n https://github.com/microsoft/rushstack/blob/main/webpack/webpack-plugin-utilities/CHANGELOG.md) - Find\n out what's new in the latest version\n\n`@rushstack/webpack-plugin-utilities` is part of the [Rush Stack](https://rushstack.io/) family of projects."
37
+ }
39
38
  }