I have a webpack assembly that uses the watch () method to continuously rebuild my javascript as I work. I also have an observer that uploads modified JS files to a remote server.
Now, when I change ANY file, it will recompile ALL files. Therefore, even if one fragment changes, it will update everything, including the provider file and other unrelated packages, fragments, etc.
Is there a way in Webpack to only recompile the changed files and change the dependencies?
Here is an example of my webpack build code:
var compiler = webpack(require('./webpack.config.js')); compiler.watch({ aggregateTimeout: 300,
javascript build webpack gulp
lostPixels
source share