browser-extension/webpack.common.js
Claude b0106a4837
rebrand(lethean): update branding, ports, and config for Lethean blockchain
- Coin: Zano → Lethean, ticker: ZAN/ZANO → LTHN
- Ports: 11211 → 36941 (mainnet RPC), 46941 (testnet RPC)
- Wallet: 11212 → 36944/46944
- Address prefix: iTHN
- URLs: zano.org → lethean.io
- Explorer links: explorer.lthn.io

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:24:13 +01:00

73 lines
1.5 KiB
JavaScript

const path = require('path');
module.exports = {
module: {
rules: [
{
include: /node_modules[\\/]lethean_web3[\\/]/,
resolve: {
fullySpecified: false,
},
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader'],
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.s[ac]ss$/i,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: {
auto: /\.module\.\w+$/i,
localIdentName: '[path][name]__[local]--[hash:base64:5]',
},
importLoaders: 1,
sourceMap: true,
},
},
'sass-loader',
],
},
{
test: /\.svg$/,
use: [
{
loader: 'url-loader',
options: {
limit: 8192,
mimetype: 'image/svg+xml',
},
},
],
},
{
test: /\.(png|jpe?g|gif)$/i,
use: [
{
loader: 'file-loader',
options: {
outputPath: 'static/images',
name: '[name].[ext]',
},
},
],
},
{
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
use: 'ts-loader',
},
],
},
resolve: {
extensions: ['.*', '.js', '.jsx', '.ts', '.tsx'],
},
};