deploy-restart-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

deploy-restart-webpack-plugin

A webpack plugin wrapper for the deploy-restart module https://github.com/rdcavanha/deploy-restart

Install it through:

npm i -D deploy-restart-webpack-plugin

Usage

const {DeployRestartWebpackPlugin} = require('deploy-restart-webpack-plugin');
 
const webpackConfig = {
    plugins: [
        new DeployRestartWebpackPlugin({
            user: 'john',
            host: '192.168.1.1',
            localPath: '/home/john/app/dist',
            remoteDeployPath: '/home/remote/services/app',
            restart: true,
            serviceName: 'app'      
        }, true),
    ],
};
 
module.exports = webpackConfig;

The last parameter of the constructor is a flag that controls whether the plugin will be executed. This is useful if you have a variable that tells you when webpack is running for production or development.

The plugin will run after each successful build.

Package Sidebar

Install

npm i deploy-restart-webpack-plugin

Weekly Downloads

30

Version

1.1.2

License

MIT

Unpacked Size

4.33 kB

Total Files

6

Last publish

Collaborators

  • rdcavanha