Skip to content
This repository has been archived by the owner on Jan 30, 2022. It is now read-only.

rdcavanha/deploy-restart-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A webpack plugin wrapper for the deploy-restart module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published