mirror of
https://github.com/aljazceru/nostr-relay-registry.git
synced 2025-12-17 06:04:24 +01:00
chore: output to dist folder
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ yarn.lock
|
||||
node_modules
|
||||
*.wasm
|
||||
out.js
|
||||
dist
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
const path = require('path')
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: './main.js',
|
||||
output: {
|
||||
path: __dirname,
|
||||
path: `${__dirname}/dist`,
|
||||
filename: 'out.js'
|
||||
},
|
||||
experiments: {asyncWebAssembly: true},
|
||||
@@ -17,5 +18,10 @@ module.exports = {
|
||||
stream: 'readable-stream/readable.js',
|
||||
crypto: false
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'index.html'
|
||||
})
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user