https://github.com/vanng822/webpack-touch
Webpack plugin for touching a file when done to tell other process to take action.
https://github.com/vanng822/webpack-touch
plugin touch webpack
Last synced: 2 months ago
JSON representation
Webpack plugin for touching a file when done to tell other process to take action.
- Host: GitHub
- URL: https://github.com/vanng822/webpack-touch
- Owner: vanng822
- License: mit
- Created: 2016-08-13T10:50:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T17:01:16.000Z (about 7 years ago)
- Last Synced: 2025-10-18T19:02:50.115Z (8 months ago)
- Topics: plugin, touch, webpack
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-touch
Webpack plugin for touching a file when done to tell other process to take action.
# Usage
```javascript
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})
]
}
```