Merge pull request #1306 from Alfresco/dev-denys--webpack-performance

exclude various folders from live reload
This commit is contained in:
Mario Romano 2016-12-16 14:48:00 +00:00 committed by GitHub
commit 43d3a769a8

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'