1.0.3 • Published 5 years ago

webpack-touch v1.0.3

Weekly downloads
72
License
MIT
Repository
github
Last release
5 years ago

webpack-touch

Webpack plugin for touching a file when done to tell other process to take action.

Usage

const webpack = require('webpack');
const BundleTracker = require('webpack-bundle-tracker');
const WebpackTouch = require('webpack-touch');
module.exports = {
    entry: {
      index: './assets/js/index'
    },
    output: {
        path: './public/dist/js/',
        filename: '[name].js',
        publicPath: '/assets/dist/js/'
    },
    module: {
        loaders: [
          {
            test: /\.js$/,
            loader: 'babel-loader',
            query: {
              plugins: [],
              presets: ['es2015', 'react']
            }
          }
        ]
    },
    plugins: [
      new BundleTracker({path: __dirname, filename: './run/webpack-stats.json', indent: '  '}),
      new WebpackTouch({filename: './run/reload.touch', delay: 2000})
    ]
}
1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago