xmpp-s3-external/webpack.config.js
2021-11-24 15:19:22 -05:00

26 lines
458 B
JavaScript

const path = require('path')
module.exports = {
entry: './src/index.coffee',
output: {
filename: 'worker.js',
path: path.join(__dirname, 'dist'),
},
mode: 'production',
resolve: {
extensions: ['.coffee', '.js'],
},
module: {
rules: [
{
test: /\.coffee$/,
use: [ 'coffee-loader' ]
},
{
type: 'javascript/auto',
test: /\.json$/,
use: [ 'json-loader' ]
}
]
}
}