unplugin-https-reverse-proxy 0.0.22 → 0.0.23

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/README.md CHANGED
@@ -46,7 +46,7 @@ Example: [`playground/`](./playground/)
46
46
  <br></details>
47
47
 
48
48
  <details>
49
- <summary>Webpack</summary><br>
49
+ <summary>Webpack 5</summary><br>
50
50
 
51
51
  ```js
52
52
  // webpack.config.js
@@ -88,6 +88,33 @@ module.exports = {
88
88
 
89
89
  <br></details>
90
90
 
91
+ <details>
92
+ <summary>Webpack 4</summary><br>
93
+
94
+ ```js
95
+ // webpack.config.js
96
+
97
+ /** @type {Parameters<import('unplugin-https-reverse-proxy/webpack')['default']>[0]} */
98
+ const reverseProxyOptions = {
99
+ enable: false,
100
+ target: 'xxx',
101
+ // https: false, // not support yet
102
+ }
103
+
104
+ module.exports = {
105
+ /* ... */
106
+ devServer: {
107
+ host: '0.0.0.0',
108
+ disableHostCheck: true,
109
+ },
110
+ plugins: [
111
+ require('unplugin-https-reverse-proxy/webpack')(reverseProxyOptions)
112
+ ]
113
+ }
114
+ ```
115
+
116
+ <br></details>
117
+
91
118
  <details>
92
119
  <summary>Nuxt</summary><br>
93
120
 
@@ -105,7 +132,7 @@ export default defineNuxtConfig({
105
132
  <br></details>
106
133
 
107
134
  <details>
108
- <summary>Vue CLI</summary><br>
135
+ <summary>Vue CLI 5</summary><br>
109
136
 
110
137
  ```js
111
138
  // vue.config.js
@@ -148,6 +175,34 @@ module.exports = {
148
175
 
149
176
  <br></details>
150
177
 
178
+ <details>
179
+ <summary>Vue CLI 4</summary><br>
180
+
181
+ ```js
182
+ // vue.config.js
183
+
184
+ /** @type {Parameters<import('unplugin-https-reverse-proxy/webpack')['default']>[0]} */
185
+ const reverseProxyOptions = {
186
+ enable: false,
187
+ target: 'xxx',
188
+ // https: false, // not support yet
189
+ }
190
+
191
+ module.exports = {
192
+ devServer: {
193
+ host: '0.0.0.0',
194
+ disableHostCheck: true,
195
+ },
196
+ configureWebpack: {
197
+ plugins: [
198
+ require('unplugin-https-reverse-proxy/webpack')(reverseProxyOptions),
199
+ ],
200
+ },
201
+ }
202
+ ```
203
+
204
+ <br></details>
205
+
151
206
  ## Usage
152
207
 
153
208
  ```bash
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-BTWCTT26.js";
3
+ } from "./chunk-S4DC5XL4.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  import { createWebpackPlugin } from "unplugin";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-BTWCTT26.js";
3
+ } from "./chunk-S4DC5XL4.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
@@ -511,6 +511,7 @@ var unpluginFactory = (options) => ({
511
511
  }
512
512
  };
513
513
  } else {
514
+ options.https = false;
514
515
  registerExit(async () => {
515
516
  try {
516
517
  _stop && await _stop();
package/dist/esbuild.cjs CHANGED
@@ -584,6 +584,7 @@ var unpluginFactory = (options) => ({
584
584
  }
585
585
  };
586
586
  } else {
587
+ options.https = false;
587
588
  registerExit(async () => {
588
589
  try {
589
590
  _stop && await _stop();
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-BTWCTT26.js";
3
+ } from "./chunk-S4DC5XL4.js";
4
4
  import "./chunk-NNO3ZUSU.js";
5
5
 
6
6
  // src/esbuild.ts
package/dist/index.cjs CHANGED
@@ -583,6 +583,7 @@ var unpluginFactory = (options) => ({
583
583
  }
584
584
  };
585
585
  } else {
586
+ options.https = false;
586
587
  registerExit(async () => {
587
588
  try {
588
589
  _stop && await _stop();
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  src_default,
3
3
  unplugin,
4
4
  unpluginFactory
5
- } from "./chunk-BTWCTT26.js";
5
+ } from "./chunk-S4DC5XL4.js";
6
6
  import "./chunk-NNO3ZUSU.js";
7
7
  export {
8
8
  src_default as default,
package/dist/nuxt.cjs CHANGED
@@ -587,6 +587,7 @@ var unpluginFactory = (options) => ({
587
587
  }
588
588
  };
589
589
  } else {
590
+ options.https = false;
590
591
  registerExit(async () => {
591
592
  try {
592
593
  _stop && await _stop();
package/dist/nuxt.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-5MGNE7J4.js";
3
+ } from "./chunk-O43OD7QE.js";
4
4
  import {
5
5
  webpack_default
6
- } from "./chunk-Q7NSASV3.js";
7
- import "./chunk-BTWCTT26.js";
6
+ } from "./chunk-J4ZJTATR.js";
7
+ import "./chunk-S4DC5XL4.js";
8
8
  import "./chunk-NNO3ZUSU.js";
9
9
 
10
10
  // src/nuxt.ts
package/dist/rollup.cjs CHANGED
@@ -584,6 +584,7 @@ var unpluginFactory = (options) => ({
584
584
  }
585
585
  };
586
586
  } else {
587
+ options.https = false;
587
588
  registerExit(async () => {
588
589
  try {
589
590
  _stop && await _stop();
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-BTWCTT26.js";
3
+ } from "./chunk-S4DC5XL4.js";
4
4
  import "./chunk-NNO3ZUSU.js";
5
5
 
6
6
  // src/rollup.ts
package/dist/vite.cjs CHANGED
@@ -584,6 +584,7 @@ var unpluginFactory = (options) => ({
584
584
  }
585
585
  };
586
586
  } else {
587
+ options.https = false;
587
588
  registerExit(async () => {
588
589
  try {
589
590
  _stop && await _stop();
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-5MGNE7J4.js";
4
- import "./chunk-BTWCTT26.js";
3
+ } from "./chunk-O43OD7QE.js";
4
+ import "./chunk-S4DC5XL4.js";
5
5
  import "./chunk-NNO3ZUSU.js";
6
6
  export {
7
7
  vite_default as default
package/dist/webpack.cjs CHANGED
@@ -584,6 +584,7 @@ var unpluginFactory = (options) => ({
584
584
  }
585
585
  };
586
586
  } else {
587
+ options.https = false;
587
588
  registerExit(async () => {
588
589
  try {
589
590
  _stop && await _stop();
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-Q7NSASV3.js";
4
- import "./chunk-BTWCTT26.js";
3
+ } from "./chunk-J4ZJTATR.js";
4
+ import "./chunk-S4DC5XL4.js";
5
5
  import "./chunk-NNO3ZUSU.js";
6
6
  export {
7
7
  webpack_default as default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-https-reverse-proxy",
3
3
  "type": "module",
4
- "version": "0.0.22",
4
+ "version": "0.0.23",
5
5
  "packageManager": "pnpm@8.6.12",
6
6
  "description": "",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -177,6 +177,8 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
177
177
  }
178
178
  }
179
179
  else {
180
+ // webpack 4 not support yet
181
+ options.https = false
180
182
  registerExit(async () => {
181
183
  try {
182
184
  _stop && await _stop()