1.1.2 • Published 4 years ago

deploy-restart-webpack-plugin v1.1.2

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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.

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago