Skip to content

Commit

Permalink
chore: upgrade webpack copy plugin + config
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleface committed May 22, 2020
1 parent 6bbe9c1 commit 8e1d457
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 112 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"cozy-konnector-libs": "4.34.3"
},
"devDependencies": {
"copy-webpack-plugin": "5.1.1",
"copy-webpack-plugin": "6.0.1",
"cozy-app-publish": "0.22.3",
"cozy-jobs-cli": "1.13.4",
"eslint-config-cozy-app": "1.5.0",
"git-directory-deploy": "1.5.1",
"husky": "4.2.3",
"husky": "4.2.5",
"konitor": "0.10.3",
"svgo": "1.3.2",
"webpack": "4.42.1",
"webpack": "4.43.0",
"webpack-cli": "3.3.11"
}
}
18 changes: 10 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ module.exports = {
filename: 'index.js'
},
plugins: [
new CopyPlugin([
{ from: 'manifest.konnector' },
{ from: 'package.json' },
{ from: 'README.md' },
{ from: 'assets', transform: optimizeSVGIcon },
{ from: '.travis.yml' },
{ from: 'LICENSE' }
]),
new CopyPlugin({
patterns: [
{ from: 'manifest.konnector' },
{ from: 'package.json' },
{ from: 'README.md' },
{ from: 'assets', transform: optimizeSVGIcon },
{ from: '.travis.yml' },
{ from: 'LICENSE' }
]
}),
new webpack.DefinePlugin({
__WEBPACK_PROVIDED_MANIFEST__: JSON.stringify(readManifest())
})
Expand Down
Loading

0 comments on commit 8e1d457

Please sign in to comment.