Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

petterm/webpack-dev-server-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing a bug with webpack-dev-server

Start with

npm install
npm run start

Access http://localhost:8000/test and it should return Hello world from the proxied server.

It seems however that the proxy config for webpack-dev-server does not accept an object directly even though the proxy schema allows it.

Change webpack.config.js to specify the proxy config instead as a list and it works.

    devServer: {
        contentBase: false,
        host: 'localhost',
-       proxy: {
+       proxy: [{
            context: () => true,
            target: 'http://localhost',
-       },
+       }],
        port: 8000,
    },

About

Testing a webpack-dev-server bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published