diff --git a/public/microfrontends/fn_dashboard/index.html b/public/microfrontends/fn_dashboard/index.html index fb0b659e1905e..4b8d921e535af 100644 --- a/public/microfrontends/fn_dashboard/index.html +++ b/public/microfrontends/fn_dashboard/index.html @@ -1,25 +1,6 @@ - - - - CodeRabbit Micro-frontend - - - - -
- - - - - - - - - + }; diff --git a/public/views/index-microfrontend-template.html b/public/views/index-microfrontend-template.html index 716020df9af66..edc4c0e7ff2f8 100644 --- a/public/views/index-microfrontend-template.html +++ b/public/views/index-microfrontend-template.html @@ -1,6 +1,6 @@ - + CodeRabbit Micro-frontend diff --git a/scripts/webpack/webpack.common.js b/scripts/webpack/webpack.common.js index 82adc1d17db0f..fe3f8e1ac2f3f 100644 --- a/scripts/webpack/webpack.common.js +++ b/scripts/webpack/webpack.common.js @@ -9,7 +9,6 @@ module.exports = { target: 'web', entry: { app: './public/app/index.ts', - fn_dashboard: './public/app/fn_dashboard.ts', }, output: { clean: true, diff --git a/scripts/webpack/webpack.prod.js b/scripts/webpack/webpack.prod.js index 0e3ff4650888d..15d55615ce7b2 100644 --- a/scripts/webpack/webpack.prod.js +++ b/scripts/webpack/webpack.prod.js @@ -6,8 +6,7 @@ const { EsbuildPlugin } = require('esbuild-loader'); const { resolveToEsbuildTarget } = require('esbuild-plugin-browserslist'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); -const { EnvironmentPlugin } = require('webpack'); -const WebpackAssetsManifest = require('webpack-assets-manifest'); +const { DefinePlugin } = require('webpack'); const { WebpackManifestPlugin } = require('webpack-manifest-plugin'); const { merge } = require('webpack-merge'); @@ -95,6 +94,11 @@ module.exports = (env = {}) => excludeChunks: ['dark', 'light', 'app'], }), new HTMLWebpackCSSChunks(), + new DefinePlugin({ + 'process.env': { + NODE_ENV: JSON.stringify('development'), + }, + }), new WebpackManifestPlugin({ fileName: path.join(process.cwd(), 'manifest.json'), filter: (file) => !file.name.endsWith('.map'),