Files
James Wilson 0cd8726ce5 Feat: Map Node Stats (Version, Operating System etc) to each Node in Feed (#591)
* added functionality for specifying node details per each node

* Backend done
Added new item in Ranking
node_map, mapping node id to node detail

Co-authored-by: Cyndie Kamau <cyndiekamaa@gmail.com>

* feat: last frontend working version

* chore: Clean up unused code

* fix(frontend): update node details to carry 10 fields

* chore: remove unnecessary code

* chore: run cargo fmt for formatting

* chore: run prettier to format frontend

* fixed e2e tests added missing struct params

* remoted .idea file

* Hide new columns by default, default to - if no data, and remove .idea folder

---------

Co-authored-by: MrishoLukamba <abdulrazzaqlukamba@gmail.com>
Co-authored-by: Cyndie Kamau <cyndiekamaa@gmail.com>
2024-09-25 14:01:42 +01:00

52 lines
1.4 KiB
JavaScript

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.tsx',
devtool: 'inline-source-map',
module: {
rules: [
{
// Allow 'import * from "./foo.tsx"'
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
{
// allow 'import "foo.css"' and '@import "foo.css" in css files
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
generator: { filename: 'styles/[name].[contenthash][ext]' },
},
{
// allow 'import Icon from "./icon.png"'
test: /\.(png|svg|jpg|jpeg|gif)$/i,
type: 'asset/resource',
generator: { filename: 'images/[name].[contenthash][ext]' },
},
{
// allow CSS @url('./my-font.woff2')" style font loading
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: 'asset/resource',
generator: { filename: 'fonts/[name].[contenthash][ext]' },
},
],
},
plugins: [
// Use our index.html as a starting point (to add script links etc to)
// and make sure to use/copy over the favicon too.
new HtmlWebpackPlugin({
favicon: './assets/favicon.svg',
template: './assets/index.html',
}),
],
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'main.[contenthash].js',
path: path.resolve(__dirname, 'build'),
clean: true,
},
};