0.0.1 • Published 7 years ago

deploy-webpack-plugin v0.0.1

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

deploy-webpack-plugin

A webpack plugin to deploy complied static resources and template files to local or remote directory.

Example

// webpack.config.js
var DeployWebpackPlugin = require('deploy-webpack-plugin');
module.exports = {
    // ...
    plugins: [
        new DeployPlugin({
            "receiver": "http://remote_server:3333/receiver", // optional, deploy to local directory when omitted
            "staticDir": "/Users/xxx/repos/tmp/test/static", // .js,.css,images will end up here
            "tplDir": "/Users/xxx/repos/tmp/test/template" // .html ends up here
        })
    ]
};