@dotcom-tool-kit/webpack 1.4.0 → 1.4.1

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,11 @@ const logger_1 = require("@dotcom-tool-kit/logger");
5
5
  const webpackCLIPath = require.resolve('webpack-cli/bin/cli');
6
6
  function runWebpack(logger, options) {
7
7
  logger.info('starting Webpack...');
8
- const child = (0, child_process_1.fork)(webpackCLIPath, ['build', `--mode=${options.mode}`, options.configPath ? `--config=${options.configPath}` : ''], { silent: true });
8
+ const args = ['build', '--color', `--mode=${options.mode}`];
9
+ if (options.configPath) {
10
+ args.push(`--config=${options.configPath}`);
11
+ }
12
+ const child = (0, child_process_1.fork)(webpackCLIPath, args, { silent: true });
9
13
  (0, logger_1.hookFork)(logger, 'webpack', child);
10
14
  return (0, logger_1.waitOnExit)('webpack', child);
11
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcom-tool-kit/webpack",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "main": "lib",
5
5
  "description": "",
6
6
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
@@ -17,9 +17,9 @@
17
17
  "test": "cd ../../ ; npx jest --silent --projects plugins/webpack"
18
18
  },
19
19
  "dependencies": {
20
- "@dotcom-tool-kit/error": "^1.4.0",
21
- "@dotcom-tool-kit/logger": "^1.4.0",
22
- "@dotcom-tool-kit/types": "^1.4.0",
20
+ "@dotcom-tool-kit/error": "^1.4.1",
21
+ "@dotcom-tool-kit/logger": "^1.4.1",
22
+ "@dotcom-tool-kit/types": "^1.4.1",
23
23
  "webpack-cli": "^4.6.0"
24
24
  },
25
25
  "peerDependencies": {