Skip to content

Commit

Permalink
fix(webpack): adjust CopyWebpackPlugin pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomah committed Aug 11, 2020
1 parent 1d0058a commit 5f3bcac
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ module.exports = {
// Copy generated schema & nexus files
// TODO: Refactor, there's probably a better way to do that :)
plugins: [
new CopyPlugin([
{
from: './src/generated',
to: 'src/src/generated',
toType: 'dir',
},
]),
new CopyPlugin({
patterns: [
{
from: './src/generated',
to: 'src/src/generated',
toType: 'dir',
},
],
}),
],
};

0 comments on commit 5f3bcac

Please sign in to comment.