Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add VariablePickerMenuPlugin to select variables in the prompt text box by menu #4764 #4765

Merged
merged 11 commits into from
Feb 8, 2025
Merged
5 changes: 4 additions & 1 deletion web/.umirc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from 'path';
import TerserPlugin from 'terser-webpack-plugin';
import { defineConfig } from 'umi';
import { appName } from './src/conf.json';
import routes from './src/routes';
Expand All @@ -23,7 +24,7 @@ export default defineConfig({
'@react-dev-inspector/umi4-plugin',
'@umijs/plugins/dist/tailwindcss',
],
jsMinifier: 'terser',
jsMinifier: 'none', // Fixed the issue that the page displayed an error after packaging lexical with terser
lessLoader: {
modifyVars: {
hack: `true; @import "~@/less/index.less";`,
Expand All @@ -48,6 +49,8 @@ export default defineConfig({
chainWebpack(memo, args) {
memo.module.rule('markdown').test(/\.md$/).type('asset/source');

memo.optimization.minimizer('terser').use(TerserPlugin); // Fixed the issue that the page displayed an error after packaging lexical with terser

return memo;
},
tailwindcss: {},
Expand Down
Loading