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);
// 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'