Add a `watch` option. E.g. webpack({watch: true})
See original GitHub issueWith this flag set to true, the plugin would run bundler in a watch mode - bundler.watch(..)
, instead of bundler.run(..)
.
var gulp = require('gulp');
var webpack = require('gulp-webpack');
gulp.task('bundle', function () {
return gulp.src('src/app.jsx')
.pipe(webpack({watch: true}))
.pipe(gulp.dest('./build'));
});
Issue Analytics
- State:
- Created 9 years ago
- Comments:29 (2 by maintainers)
Top Results From Across the Web
Watch and WatchOptions | webpack
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can...
Read more >webpack --watch isn't compiling changed files - Stack Overflow
So setting poll: true allows webpack to check the state of your program to see if any changes have been made, or at...
Read more >grunt-webpack - npm
When set to true the grunt process/task will be kept alive after webpack task is finished. This is especially useful for watch and ......
Read more >rollup.js
Rebuild the bundle when its source files change on disk. Note: While in watch mode, the ROLLUP_WATCH environment variable will be set to...
Read more >An Introduction to Webpack Watch - Mastering JS
You can also enable watch mode from your Webpack config file: module.exports = { mode: 'development', watch: true, // Enable ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those of you who are still having issues with Weback
watch
, I created a PR that should address this in a more gulp friendly way. See #109. Let me know how this works for you guys.🍺
@MarkLeMerise Are you
return
-ing the gulp pipeline? Instead of:Try: