@xh/hoist-dev-utils 7.1.0 → 7.2.0

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.
@@ -12,7 +12,6 @@ const _ = require('lodash'),
12
12
  webpack = require('webpack'),
13
13
  BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin,
14
14
  CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'),
15
- {CleanWebpackPlugin} = require('clean-webpack-plugin'),
16
15
  CopyWebpackPlugin = require('copy-webpack-plugin'),
17
16
  MiniCssExtractPlugin = require('mini-css-extract-plugin'),
18
17
  HtmlWebpackPlugin = require('html-webpack-plugin'),
@@ -346,7 +345,8 @@ async function configureWebpack(env) {
346
345
  path: outPath,
347
346
  // (URL) path on which fully built app is served - i.e. root context
348
347
  publicPath: contextRoot,
349
- pathinfo: !prodBuild
348
+ pathinfo: !prodBuild,
349
+ clean: true
350
350
  },
351
351
 
352
352
  optimization: {
@@ -600,9 +600,6 @@ async function configureWebpack(env) {
600
600
  },
601
601
 
602
602
  plugins: [
603
- // Clean (remove) the output directory before each run.
604
- new CleanWebpackPlugin(),
605
-
606
603
  // Load only the BlueprintJS icons used by Hoist-React components.
607
604
  !loadAllBlueprintJsIcons
608
605
  ? new webpack.NormalModuleReplacementPlugin(
@@ -620,6 +617,7 @@ async function configureWebpack(env) {
620
617
  xhAppBuild: JSON.stringify(appBuild),
621
618
  xhBaseUrl: JSON.stringify(baseUrl),
622
619
  xhBuildTimestamp: buildDate.getTime(),
620
+ xhClientApps: JSON.stringify(appNames),
623
621
  xhIsDevelopmentMode: !prodBuild
624
622
  }),
625
623
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "description": "Utilities for configuring builds of Hoist-React client applications.",
5
5
  "repository": "github:xh/hoist-dev-utils",
6
6
  "homepage": "https://github.com/xh/hoist-dev-utils",
@@ -26,7 +26,6 @@
26
26
  "babel-plugin-transform-imports": "~2.0.0",
27
27
  "case-sensitive-paths-webpack-plugin": "~2.4.0",
28
28
  "changelog-parser": "~3.0.1",
29
- "clean-webpack-plugin": "~4.0.0",
30
29
  "copy-webpack-plugin": "~12.0.2",
31
30
  "css-loader": "~6.10.0",
32
31
  "file-loader": "~6.2.0",