@dotcom-tool-kit/webpack 2.1.11 → 2.1.12

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.
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tasks = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const development_1 = (0, tslib_1.__importDefault)(require("./tasks/development"));
6
- const production_1 = (0, tslib_1.__importDefault)(require("./tasks/production"));
7
- const watch_1 = (0, tslib_1.__importDefault)(require("./tasks/watch"));
5
+ const development_1 = tslib_1.__importDefault(require("./tasks/development"));
6
+ const production_1 = tslib_1.__importDefault(require("./tasks/production"));
7
+ const watch_1 = tslib_1.__importDefault(require("./tasks/watch"));
8
8
  exports.tasks = [development_1.default, production_1.default, watch_1.default];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const types_1 = require("@dotcom-tool-kit/types");
5
- const run_webpack_1 = (0, tslib_1.__importDefault)(require("../run-webpack"));
5
+ const run_webpack_1 = tslib_1.__importDefault(require("../run-webpack"));
6
6
  class WebpackDevelopment extends types_1.Task {
7
7
  async run() {
8
8
  await (0, run_webpack_1.default)(this.logger, {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const types_1 = require("@dotcom-tool-kit/types");
5
- const run_webpack_1 = (0, tslib_1.__importDefault)(require("../run-webpack"));
5
+ const run_webpack_1 = tslib_1.__importDefault(require("../run-webpack"));
6
6
  class WebpackProduction extends types_1.Task {
7
7
  async run() {
8
8
  await (0, run_webpack_1.default)(this.logger, {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const types_1 = require("@dotcom-tool-kit/types");
5
- const run_webpack_1 = (0, tslib_1.__importDefault)(require("../run-webpack"));
5
+ const run_webpack_1 = tslib_1.__importDefault(require("../run-webpack"));
6
6
  class WebpackWatch extends types_1.Task {
7
7
  async run() {
8
8
  // don't wait for Webpack to exit, to leave it running in the background
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcom-tool-kit/webpack",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "main": "lib",
5
5
  "description": "",
6
6
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
@@ -18,14 +18,14 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@dotcom-tool-kit/error": "^2.0.1",
21
- "@dotcom-tool-kit/logger": "^2.2.0",
22
- "@dotcom-tool-kit/types": "^2.8.0",
21
+ "@dotcom-tool-kit/logger": "^2.2.1",
22
+ "@dotcom-tool-kit/types": "^2.9.0",
23
23
  "webpack-cli": "^4.6.0",
24
24
  "tslib": "^2.3.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "webpack": "4.x.x || 5.x.x",
28
- "dotcom-tool-kit": "2.x"
28
+ "dotcom-tool-kit": "^2.6.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@jest/globals": "^27.4.6",
package/readme.md CHANGED
@@ -38,6 +38,12 @@ hooks:
38
38
  'test:local': WebpackDevelopment
39
39
  ```
40
40
 
41
+ ## Options
42
+
43
+ | Key | Description | Default value |
44
+ |-|-|-|
45
+ | `configPath` | An optional path to your Webpack config file | none |
46
+
41
47
  ## Tasks
42
48
 
43
49
  | Task | Description | Default hooks |