deploy-webpack-plugin

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i deploy-webpack-plugin

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • xiaoping6688