ba6584e4b6
* chore(nc-android): prepare for production build * refactor(nc-android): remove dead code * feat(nc-android): update native color theme * feat(nc-android): update native color theme * build(nc-android): fix rfd version issue * build(nc-android): fix dist dir no such file error * fix(nc-android): post rebase changes
56 lines
1.1 KiB
JavaScript
56 lines
1.1 KiB
JavaScript
const path = require('path');
|
|
const { mergeWithRules } = require('webpack-merge');
|
|
const { webpackCommon } = require('@nymproject/webpack');
|
|
|
|
const entry = {
|
|
app: path.resolve(__dirname, 'src/index.tsx'),
|
|
};
|
|
|
|
module.exports = mergeWithRules({
|
|
module: {
|
|
rules: {
|
|
test: 'match',
|
|
use: 'replace',
|
|
},
|
|
},
|
|
})(
|
|
webpackCommon(__dirname, [
|
|
{ filename: 'index.html', chunks: ['app'], template: path.resolve(__dirname, 'public/index.html') },
|
|
]),
|
|
{
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.mdx?$/,
|
|
use: [
|
|
{
|
|
loader: '@mdx-js/loader',
|
|
/** @type {import('@mdx-js/loader').Options} */
|
|
options: {},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.ya?ml$/,
|
|
type: 'asset/resource',
|
|
use: [
|
|
{
|
|
loader: 'yaml-loader',
|
|
options: {
|
|
asJSON: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
entry,
|
|
output: {
|
|
clean: true,
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].bundle.js',
|
|
publicPath: '/',
|
|
},
|
|
},
|
|
);
|