webpack-hot-css-entry

1.0.0 • Public • Published

webpack-hot-css-entry

NPM version npm download

Webpack css hot reload, this plugin depends on webpack-hot-middleware.

Install

npm install webpack-hot-css-entry --save-dev

Usage

// ${roo}/webpack.config.js
module.exports = {
  entry: {
    app: [
      'react-hot-loader/babel',
      'webpack-hot-css-entry?path=/__webpack_hmr&pubicPath=/public/',
      'webpack-hot-middleware/client?path=/__webpack_hmr&noInfo=false&reload=false&quiet=false',
      './src/app.js',
    ]
  }
}

Configuration

The options are implemented by by Webpack Plugin global var __resourceQuery.

path

Type: String Default: /__webpack_hmr

Hot Reload Url for webpack-hot-middleware

publicPath

Type: String Default: webpack_public_path

Webpack config publicPath

License

MIT

Package Sidebar

Install

npm i webpack-hot-css-entry

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.47 kB

Total Files

8

Last publish

Collaborators

  • hubcarl