We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792c6de commit 343fb9eCopy full SHA for 343fb9e
index.js
@@ -1,8 +1,9 @@
1
var proxy = require('http-proxy-middleware');
2
3
module.exports = (api, options) => {
4
- const opts = options.pluginOptions.proxy
5
- if(opts && (opts.enabled === undefined || opts.enabled)) {
+ const opts = options.pluginOptions.proxy;
+
6
+ if (opts && (opts.enabled === undefined || opts.enabled)) {
7
api.configureDevServer((app) => {
8
app.use(proxy(
9
opts.context,
0 commit comments