mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
Merge pull request #1306 from Alfresco/dev-denys--webpack-performance
exclude various folders from live reload
This commit is contained in:
commit
43d3a769a8
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user