8575a72a22
* Use shared ts-packages in wallet * Add eslint rules * Formatting: run eslint --fix on all files * Formatting: fix linting errors for dependencies * linting fixes * fix sign in pages * fix breaking change * fix ts errors fix ts and es errors * Fix up typings for image and json modules Add tsconfig for eslint to process webpack config * Use shared webpack config * Use shared logo component * Remove unused images * Allow html path to be passed as an argument in shared webpack config * Fix up webpack config for html template * Build shared ts-packages before starting dev mode * Fix webpack config * use shared logo component Co-authored-by: fmtabbara <fmtabbara@hotmail.co.uk> Co-authored-by: mmsinclair <mmsinclair@users.noreply.github.com>
19 lines
444 B
JavaScript
19 lines
444 B
JavaScript
const path = require('path');
|
|
const { mergeWithRules } = require('webpack-merge');
|
|
const { webpackCommon } = require('@nymproject/webpack');
|
|
|
|
module.exports = mergeWithRules({
|
|
module: {
|
|
rules: {
|
|
test: 'match',
|
|
use: 'replace',
|
|
},
|
|
},
|
|
})(webpackCommon(__dirname, 'public/index.html'), {
|
|
entry: path.resolve(__dirname, 'src/index.tsx'),
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
publicPath: '/',
|
|
},
|
|
});
|