mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-28 07:17:57 +00:00
60a800b33e
- Clone Polkadot.js Apps repository - Update package.json with Pezkuwi branding - Add Pezkuwi endpoint to production chains (wss://pezkuwichain.app:9944) - Create comprehensive README for SDK UI - Set up project structure with all packages Next steps: - Apply Kurdistan colors (Kesk, Sor, Zer, Spi + Black) to UI theme - Replace logos with Pezkuwi branding - Test build and deployment
32 lines
915 B
JavaScript
32 lines
915 B
JavaScript
// Copyright 2017-2025 @polkadot/apps authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
const fs = require('fs');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const path = require('path');
|
|
const { merge } = require('webpack-merge');
|
|
const { SubresourceIntegrityPlugin } = require('webpack-subresource-integrity');
|
|
|
|
const baseConfig = require('./webpack.base.cjs');
|
|
|
|
const context = __dirname;
|
|
const hasPublic = fs.existsSync(path.join(context, 'public'));
|
|
|
|
module.exports = merge(
|
|
baseConfig(context),
|
|
{
|
|
devtool: process.env.BUILD_ANALYZE ? 'source-map' : false,
|
|
output: {
|
|
crossOriginLoading: 'anonymous'
|
|
},
|
|
plugins: [
|
|
new SubresourceIntegrityPlugin(),
|
|
new HtmlWebpackPlugin({
|
|
PAGE_TITLE: 'Polkadot/Substrate Portal',
|
|
minify: false,
|
|
template: path.join(context, `${hasPublic ? 'public/' : ''}index.html`)
|
|
})
|
|
]
|
|
}
|
|
);
|