certd/packages/executor/webpack.config.cjs

24 lines
507 B
JavaScript
Raw Normal View History

2021-01-03 13:50:14 +00:00
const path = require('path')
2021-01-05 13:27:23 +00:00
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
console.log(CleanWebpackPlugin)
2021-01-03 13:50:14 +00:00
module.exports = {
2021-01-05 13:27:23 +00:00
devtool: 'source-map',
2021-01-03 16:45:04 +00:00
target: 'node',
2021-01-03 13:50:14 +00:00
entry: './src/index.js',
output: {
2021-01-05 13:27:23 +00:00
filename: 'executor.js',
path: path.resolve(__dirname, 'dist'),
library: 'certdExecutor',
libraryTarget: 'umd'
},
plugins: [
new CleanWebpackPlugin()
],
mode: 'production'
// mode: 'development',
// optimization: {
// usedExports: true
// }
2021-01-03 13:50:14 +00:00
}