Skip to content

Commit

Permalink
feat: Centralize clisk webpack configuration
Browse files Browse the repository at this point in the history
To replace clisk konnectors webpack configuration with

```javascript
module.exports = require('cozy-konnector-build/webpack.config.clisk')
```

And have the possibility to update webpack configuration on all clisk
konnectors with just a package update
  • Loading branch information
doubleface authored and doubleface committed Apr 19, 2023
1 parent fd9ef8d commit 1abb798
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/cozy-konnector-build/webpack.config.clisk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')

module.exports = {
mode: 'none',
output: {
path: path.join(process.cwd(), 'build'),
filename: 'main.js'
},
plugins: [
new CopyPlugin({
patterns: [{ from: 'manifest.konnector' }, { from: 'assets' }]
})
]
}

0 comments on commit 1abb798

Please sign in to comment.