Added include and exclude properties. Both of them can be string/regex or Array of string/regex.
new DirectoryNamedWebpackPlugin({
exclude: /node_modules/,
// exclude is not necessary for this use case
include: [
/app\/components\//,
/app\/container\//
]
})
14
Added include and exclude properties. Both of them can be string/regex or Array of string/regex.