Skip to content

Ensure there is only one webpack process running at the same time

Notifications You must be signed in to change notification settings

randing89/webpack-mutex-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
        }
    })
]

About

Ensure there is only one webpack process running at the same time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published