exclude various folders from live reload

This commit is contained in:
Denys Vuika
2016-12-16 12:59:51 +00:00
parent 12b361acc8
commit 8130c29db9

View File

@@ -18,8 +18,8 @@ let options = {
let alfrescoLibs = glob.sync(pattern, options); let alfrescoLibs = glob.sync(pattern, options);
// console.dir(alfrescoLibs); // console.dir(alfrescoLibs);
// Uncomment if you need all node_modules folders for Alfresco components let alfrescoLibsModules = alfrescoLibs.map(p => path.join(p, 'node_modules'));
// let alfrescoLibsModules = alfrescoLibs.map(p => path.join(p, 'node_modules')); let alfrescoLibsSources = alfrescoLibs.map(p => path.join(p, 'src'));
module.exports = { module.exports = {
entry: { entry: {
@@ -110,6 +110,11 @@ module.exports = {
'dialogPolyfill': 'dialog-polyfill/dialog-polyfill' 'dialogPolyfill': 'dialog-polyfill/dialog-polyfill'
}), }),
new webpack.WatchIgnorePlugin([
...alfrescoLibsModules,
...alfrescoLibsSources
]),
new CopyWebpackPlugin([ new CopyWebpackPlugin([
{ from: 'versions.json' } { from: 'versions.json' }
]), ]),