diff --git a/public/microfrontends/fn_dashboard/index.html b/public/microfrontends/fn_dashboard/index.html index 43f6195041da3..3c5cc9d5441d9 100644 --- a/public/microfrontends/fn_dashboard/index.html +++ b/public/microfrontends/fn_dashboard/index.html @@ -1,25 +1,6 @@ - - - - CodeRabbit Micro-frontend - - - - -
- - - - - - - - - + }; \ No newline at end of file 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 20f0d82bee9a6..2afb30f2b1414 100644 --- a/scripts/webpack/webpack.common.js +++ b/scripts/webpack/webpack.common.js @@ -10,7 +10,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 9e55ce7386486..a373b171bbad7 100644 --- a/scripts/webpack/webpack.prod.js +++ b/scripts/webpack/webpack.prod.js @@ -7,6 +7,7 @@ const { resolveToEsbuildTarget } = require('esbuild-plugin-browserslist'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); +const { DefinePlugin } = require('webpack'); const { WebpackManifestPlugin } = require('webpack-manifest-plugin'); const { merge } = require('webpack-merge'); @@ -92,6 +93,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'),