Yes . As noted in these documents, it is includepreferable than excludewhen possible. These documents also suggest what excludeshould be the condition, so the array may not work there. Using your example:
{
module: {
loaders: [
{
test: /\.js$/,
include: [/node_modules/],
exclude: /extra_srcs/
}
]
}
}
source
share