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);
// 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 = {
entry: {
@@ -110,6 +110,11 @@ module.exports = {
'dialogPolyfill': 'dialog-polyfill/dialog-polyfill'
}),
new webpack.WatchIgnorePlugin([
...alfrescoLibsModules,
...alfrescoLibsSources
]),
new CopyWebpackPlugin([
{ from: 'versions.json' }
]),