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

27 lines
489 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'],
fallback: { "os": false },
},
module: {
rules: [
{
test: /\.coffee$/,
use: [ 'coffee-loader' ]
},
{
type: 'javascript/auto',
test: /\.json$/,
use: [ 'json-loader' ]
}
]
}
}