canopy-webpack-config 4.0.0-beta.1 → 4.0.0-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canopy-webpack-config",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.3",
4
4
  "description": "Some defaults for webpack configs at canopy",
5
5
  "main": "src/canopy-webpack-config.js",
6
6
  "repository": "git@github.com:CanopyTax/canopy-webpack-config.git",
@@ -13,8 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "clean-webpack-plugin": "^4.0.0",
16
- "unused-files-webpack-plugin": "^3.4.0",
17
- "webpack-bundle-analyzer": "^4.5.0",
16
+ "webpack-bundle-analyzer": "^4.7.0",
18
17
  "webpack-merge": "^4.2.1"
19
18
  }
20
19
  }
@@ -1,7 +1,6 @@
1
1
  const path = require('path')
2
2
  const { CleanWebpackPlugin } = require('clean-webpack-plugin')
3
3
  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
4
- const { UnusedFilesWebpackPlugin } = require('unused-files-webpack-plugin');
5
4
  const merge = require('webpack-merge')
6
5
  const fs = require("fs")
7
6
  const homedir = require("os").homedir()
@@ -72,19 +71,6 @@ module.exports = function(name, overridesConfig) {
72
71
  new BundleAnalyzerPlugin({
73
72
  analyzerMode: env.analyze || 'disabled',
74
73
  }),
75
- new UnusedFilesWebpackPlugin({
76
- globOptions: {
77
- cwd: path.resolve(process.cwd(), 'src'),
78
- ignore: [
79
- '**/*.test.js',
80
- '**/*.spec.js',
81
- '**/*.js.snap',
82
- '**/test-setup.js',
83
- '**/*.stories.js',
84
- '**/*.story.js',
85
- ],
86
- }
87
- }),
88
74
  ],
89
75
  devtool: 'source-map',
90
76
  externals: [
@@ -108,9 +94,12 @@ module.exports = function(name, overridesConfig) {
108
94
  ],
109
95
  devServer: isDevServer ? {
110
96
  host: host,
111
- https: {
112
- cert: fs.readFileSync(`${homedir}/.canopy-ssl/public.pem`),
113
- key: fs.readFileSync(`${homedir}/.canopy-ssl/key.pem`)
97
+ server: {
98
+ type: 'https',
99
+ options: {
100
+ cert: fs.readFileSync(`${homedir}/.canopy-ssl/public.pem`),
101
+ key: fs.readFileSync(`${homedir}/.canopy-ssl/key.pem`)
102
+ },
114
103
  },
115
104
  allowedHosts: 'all',
116
105
  client: {