mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 11:36:54 +00:00
7036879ea6
* refactor(client): change Variable.TextArea to controlled component * fix(client): fix space and range index * fix(client): fix ime state in Variable.TextArea * chore(ci): trigger ci * fix(client): fix expression validation * fix(plugin-workflow): fix test case * fix(client): fix caret when not focused * fix(client): add html-sanitize * fix(client): fix range errors on any input * fix(client): fix start and end range
32 lines
868 B
TypeScript
32 lines
868 B
TypeScript
import { getUmiConfig, resolveNocobasePackagesAlias } from '@nocobase/devtools/umiConfig';
|
|
import { defineConfig } from 'umi';
|
|
|
|
const umiConfig = getUmiConfig();
|
|
|
|
process.env.MFSU_AD = 'none';
|
|
|
|
export default defineConfig({
|
|
hash: true,
|
|
define: {
|
|
...umiConfig.define,
|
|
},
|
|
dynamicImportSyntax: {},
|
|
// only proxy when using `umi dev`
|
|
// if the assets are built, will not proxy
|
|
proxy: {
|
|
...umiConfig.proxy,
|
|
},
|
|
nodeModulesTransform: {
|
|
type: 'none',
|
|
},
|
|
routes: [{ path: '/', exact: false, component: '@/pages/index' }],
|
|
// fastRefresh: {},
|
|
chainWebpack(memo) {
|
|
resolveNocobasePackagesAlias(memo);
|
|
|
|
// 在引入 mermaid 之后,运行 yarn dev 的时候会报错,添加下面的代码可以解决。
|
|
memo.module.rule('js-in-node_modules').test(/(htmlparser2|(.*mermaid.*\.js$))/).include.clear();
|
|
return memo;
|
|
},
|
|
});
|