Skip to content

Commit 1374338

Browse files
committed
refactor(index): export as prop and default
1 parent 9120530 commit 1374338

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const getOutputDir = (compiler) => {
3333
return devServer.outputPath;
3434
};
3535

36-
export default (patterns = [], options = {}) => {
36+
export function CopyWebpackPlugin (patterns = [], options = {}) {
3737
if (!_.isArray(patterns)) {
3838
throw new Error('CopyWebpackPlugin: patterns must be an array');
3939
}
@@ -237,3 +237,5 @@ export default (patterns = [], options = {}) => {
237237
apply
238238
};
239239
};
240+
241+
export default CopyWebpackPlugin;

0 commit comments

Comments
 (0)