0.0.1 • Published 7 years ago
deploy-webpack-plugin v0.0.1
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
})
]
};
0.0.1
7 years ago