mirror of
https://github.com/aljazceru/nostr-watch.git
synced 2025-12-17 05:24:19 +01:00
28 lines
537 B
JavaScript
28 lines
537 B
JavaScript
const path = require('path')
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
entry: './main.js',
|
|
output: {
|
|
path: `${__dirname}/dist`,
|
|
filename: 'out.js'
|
|
},
|
|
experiments: {asyncWebAssembly: true},
|
|
resolve: {
|
|
alias: {
|
|
stream: 'readable-stream'
|
|
},
|
|
fallback: {
|
|
buffer: 'buffer/index.js',
|
|
stream: 'readable-stream/readable.js',
|
|
crypto: false
|
|
}
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: 'index.html'
|
|
})
|
|
],
|
|
}
|