Skip to content
svrx plugin for webpack
JavaScript HTML
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ build: move from svrx (#1) Jul 19, 2019
example chroe: update demo with new @svrx/svrx Oct 15, 2019
.editorconfig
.eslintignore
.eslintrc
.gitignore
.travis.yml build: move from svrx (#1) Jul 19, 2019
LICENSE
README.md
index.js build: update @svrx/util Oct 15, 2019
package-lock.json
package.json

README.md

svrx-plugin-webpack

svrx npm

svrx plugin for webpack

Usage

Please make sure that you have installed svrx already.

Via CLI

svrx -p "webpack"

Via API

const svrx = require('@svrx/svrx');

svrx({ plugins: ['webpack'] }).start();

with options

svrx({
    plugins: [{
        name: 'webpack',
        options: {
            hot: false
        }
    }]
}).start();

Options

config [String|Object]:

webpack config file or object, default is $root/webpack.config.js ($root means options.root)

hot [Boolean]:

Enable webpack Hot Module Replacement feature, default is true

client [Object]:

options can be passed to the client by adding querystring parameters to the path in the webpack config

see webpack-hot-middleware#client for detail

for example, options {timeout: 3000} will been encode as webpack-hot-middleware/client?timeout=3000

path [String]:

The path which the middleware will serve the event stream on, default is /__webpack_hmr

Example

License

MIT

You can’t perform that action at this time.