1.1.0 • Published 6 years ago

webpack-mutex-plugin v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

webpack-mutex-plugin

A webpack plugin to ensure there is only one webpack process running at the same time.

Usage

Add the plugin to plugins field in webpack config.

plugins: [
    new WebpackMutexPlugin({
        file: `/path/to/your/lock/file`,
        locked: () => {
            // Callback will be called when the plugin can't acquire the lock
            console.error('Cannot run multiple webpack / webpack-serve process at the same time.');
            process.exit(1);
        }
    })
]
1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago