Skip to content

Commit

Permalink
refactor(index): export as prop and default
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS committed May 13, 2016
1 parent 9120530 commit 1374338
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getOutputDir = (compiler) => {
return devServer.outputPath;
};

export default (patterns = [], options = {}) => {
export function CopyWebpackPlugin (patterns = [], options = {}) {
if (!_.isArray(patterns)) {
throw new Error('CopyWebpackPlugin: patterns must be an array');
}
Expand Down Expand Up @@ -237,3 +237,5 @@ export default (patterns = [], options = {}) => {
apply
};
};

export default CopyWebpackPlugin;

0 comments on commit 1374338

Please sign in to comment.