2.0.2 • Published 5 years ago

wds-banner v2.0.2

Weekly downloads
49
License
ISC
Repository
github
Last release
5 years ago

WebPack Dev Server Inline Banner

Mimics the behaviour of the WDS banner from live bundle from http://app/webpack-dev-server/

This is for development usage only.

This project is inspired from :

https://github.com/webpack/webpack-dev-server - overlay,banner https://github.com/glenjamin/webpack-hot-middleware https://www.npmjs.com/package/redbox-react

You will get error overlay, and informations about when the page is ready/hot updated

alt tag

Usage

Within the entry points of webpack add the following :

require.resolve('wds-banner') + '?' + webpackDevServerPublicPath, // my banner+error overlay
//or 
'wds-banner' + '?' + webpackDevServerPublicPath, // my banner+error overlay

where webpackDevServerPublicPath is the public path defined for WDS usually /

WDS banner can be used with WDS setup for HMR and React hot update

require.resolve('webpack-dev-server/client') + '?' + config.devServerPublicPath,
require.resolve('webpack/hot/dev-server'),
require.resolve('wds-banner') + '?' + config.devServerPublicPath, // my banner+error overlay
2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago