@pixolith/webpack-sw6-config 7.0.2 → 7.0.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixolith/webpack-sw6-config",
3
3
  "public": true,
4
- "version": "7.0.2",
4
+ "version": "7.0.3",
5
5
  "description": "",
6
6
  "main": "src/index.js",
7
7
  "scripts": {},
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/pixolith/webpack-plugins/issues"
22
22
  },
23
23
  "homepage": "https://github.com/pixolith/webpack-plugins/tree/master/packages/webpack-hook-plugin/#readme",
24
- "gitHead": "3ab953477c9f86b856b61fd10f0899b6189d1389",
24
+ "gitHead": "1516c8b53e358aba730b1114b551a75290e9d013",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.21.3",
27
27
  "@babel/eslint-parser": "^7.21.3",
@@ -101,7 +101,7 @@ module.exports = {
101
101
  client: {
102
102
  webSocketURL: {
103
103
  hostname: 'node.px-staging.de',
104
- protocol: 'ws',
104
+ protocol: 'wss',
105
105
  port: 8080,
106
106
  },
107
107
  overlay: {
@@ -116,7 +116,34 @@ module.exports = {
116
116
  'Access-Control-Allow-Headers':
117
117
  'X-Requested-With, content-type, Authorization',
118
118
  },
119
- server: 'http',
119
+ server: !isProd
120
+ ? {
121
+ type: 'https',
122
+ options: {
123
+ ca: fs.readFileSync(
124
+ Path.join(
125
+ process.cwd() +
126
+ '/.ddev/ssl/_wildcard.px-staging.de+1-client.pem',
127
+ ),
128
+ ),
129
+ key: fs.readFileSync(
130
+ Path.join(
131
+ process.cwd() +
132
+ '/.ddev/ssl/_wildcard.px-staging.de+1-key.pem',
133
+ ),
134
+ ),
135
+ cert: fs.readFileSync(
136
+ Path.join(
137
+ process.cwd() +
138
+ '/.ddev/ssl/_wildcard.px-staging.de+1.pem',
139
+ ),
140
+ ),
141
+ }
142
+ }
143
+ : 'http',
144
+ devMiddleware: {
145
+ writeToDisk: true,
146
+ },
120
147
  onAfterSetupMiddleware: function(devServer) {
121
148
  if (!isProd) {
122
149
  Consola.success(
@@ -168,11 +195,6 @@ module.exports = {
168
195
  svg: 'paramCase',
169
196
  },
170
197
  }),
171
-
172
- new webpack.ProvidePlugin({
173
- process: '../../../../process/browser.js',
174
- }),
175
-
176
198
  new TimeFixPlugin(),
177
199
 
178
200
  new webpack.DefinePlugin({