mirror of
https://github.com/aljazceru/nostr-relay-registry.git
synced 2025-12-17 22:24: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
|
node_modules
|
||||||
*.wasm
|
*.wasm
|
||||||
out.js
|
out.js
|
||||||
|
dist
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
entry: './main.js',
|
entry: './main.js',
|
||||||
output: {
|
output: {
|
||||||
path: __dirname,
|
path: `${__dirname}/dist`,
|
||||||
filename: 'out.js'
|
filename: 'out.js'
|
||||||
},
|
},
|
||||||
experiments: {asyncWebAssembly: true},
|
experiments: {asyncWebAssembly: true},
|
||||||
@@ -17,5 +18,10 @@ module.exports = {
|
|||||||
stream: 'readable-stream/readable.js',
|
stream: 'readable-stream/readable.js',
|
||||||
crypto: false
|
crypto: false
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
plugins: [
|
||||||
|
new HtmlWebpackPlugin({
|
||||||
|
template: 'index.html'
|
||||||
|
})
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user