8baa236d81
* Moved `nym-sphinx-wasm` into `wasm` folder and renamed its examples * A proposal for some structural cleanup * desktop client: beginning of a Rust example for chunking. * Simplifying desktop client readme * Tarting up webassembly README * A more visual webassembly client example * clients/webassembly: grouping a few things into named functions for clarity * clients/webassembly: put URLs at top of file, prepping for drop-down action * mixnode + provider run: changed startup error messages a bit * clients/webassembly: scrolling from the bottom in the demo
25 lines
716 B
JavaScript
25 lines
716 B
JavaScript
const autoprefixer = require('autoprefixer');
|
|
const path = require('path');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: './src/index.js',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
// path: path.resolve(__dirname, 'dist'),
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin(),
|
|
new HtmlWebpackPlugin({
|
|
hash: true,
|
|
template: './src/index.html',
|
|
filename: '.././dist/index.html' //relative to root of the application
|
|
})
|
|
],
|
|
devServer: {
|
|
contentBase: path.join(__dirname, 'dist'),
|
|
compress: true,
|
|
port: 8888
|
|
}
|
|
}; |