shaketbaby / directory-named-webpack-plugin

A Webpack plugin that treats a file with the name of directory as the index file
MIT License
182 stars 17 forks source link

add include and exclude #15

Closed mkg0 closed 7 years ago

mkg0 commented 7 years ago

14

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\//
    ]
})
shaketbaby commented 7 years ago

Thanks, looks good. Can you also add this to readme please?

mkg0 commented 7 years ago

added :)

shaketbaby commented 7 years ago

Thanks