Complete rebranding of all components: - Core miner: xmrig -> miner (binary, version.h, CMakeLists.txt) - Proxy: xmrig-proxy -> miner-proxy - CUDA plugin: xmrig-cuda -> miner-cuda - Heatmap: xmrig-nonces-heatmap -> miner-nonces-heatmap - Go CLI wrapper: miner-cli -> miner-ctrl Vendored XMRig ecosystem into miner/ directory: - miner/core - XMRig CPU/GPU miner - miner/proxy - Stratum proxy - miner/cuda - NVIDIA CUDA plugin - miner/heatmap - Nonce visualization tool - miner/config - Configuration UI - miner/deps - Pre-built dependencies Updated dev fee to use project wallet with opt-out (kMinimumDonateLevel=0) Updated branding to Lethean (domain, copyright, version 0.1.0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const SriPlugin = require('webpack-subresource-integrity');
|
|
|
|
|
|
module.exports = {
|
|
entry: {
|
|
app: ['whatwg-fetch', './index.js', './scss/index.scss'],
|
|
},
|
|
output: {
|
|
filename: 'assets/js/[name].[chunkhash].js',
|
|
path: path.resolve(__dirname, 'public'),
|
|
publicPath: '/',
|
|
crossOriginLoading: 'anonymous'
|
|
},
|
|
mode: process.env.NODE_ENV,
|
|
context: path.resolve(__dirname, 'src'),
|
|
devServer: {
|
|
contentBase: path.resolve(__dirname, 'public'),
|
|
port: 8080,
|
|
historyApiFallback: true
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
use: [ 'babel-loader' ],
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.(scss)$/,
|
|
use: [ MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader', 'sass-loader' ]
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: 'assets/css/[name].[chunkhash].css',
|
|
}),
|
|
new HtmlWebpackPlugin({
|
|
template: './index.html',
|
|
minify: process.env.NODE_ENV === 'production'
|
|
}),
|
|
new SriPlugin({
|
|
hashFuncNames: ['sha512'],
|
|
enabled: process.env.NODE_ENV === 'production'
|
|
}),
|
|
]
|
|
};
|