UNPKG

webpack-shell-plugin

Version:
26 lines (23 loc) 629 B
const path = require('path'); const webpack = require('webpack'); const WebpackShellPlugin = require('./lib'); module.exports = { watch: true, entry: path.resolve(__dirname, 'test/entry.js'), output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, /*devServer: { contentBase: path.resolve(__dirname, 'test') },*/ module: { loaders: [ { test: /\.css$/, loader: 'style!css' } ] }, plugins: [ new WebpackShellPlugin({onBuildStart:['node test.js'], onBuildEnd:['echo "Webpack End"'], safe: true, verbose: true}), new webpack.HotModuleReplacementPlugin() ] };