mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-16 14:40:56 +00:00
feat(web): Unified frontend code style (#1923)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: 谨欣 <echo.cmy@antgroup.com> Co-authored-by: 严志勇 <yanzhiyong@tiansuixiansheng.com> Co-authored-by: yanzhiyong <932374019@qq.com>
This commit is contained in:
@@ -28,25 +28,30 @@ const nextConfig = {
|
||||
patterns: [
|
||||
{
|
||||
from: path.join(__dirname, 'node_modules/@oceanbase-odc/monaco-plugin-ob/worker-dist/'),
|
||||
to: 'static/ob-workers'
|
||||
to: 'static/ob-workers',
|
||||
},
|
||||
],
|
||||
})
|
||||
)
|
||||
}),
|
||||
);
|
||||
// 添加 monaco-editor-webpack-plugin 插件
|
||||
config.plugins.push(
|
||||
new MonacoWebpackPlugin({
|
||||
// 你可以在这里配置插件的选项,例如:
|
||||
languages: ['sql'],
|
||||
filename: 'static/[name].worker.js'
|
||||
})
|
||||
filename: 'static/[name].worker.js',
|
||||
}),
|
||||
);
|
||||
}
|
||||
return config;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
const withTM = require('next-transpile-modules')(['@berryv/g2-react','@antv/g2','react-syntax-highlighter', '@antv/gpt-vis']);
|
||||
const withTM = require('next-transpile-modules')([
|
||||
'@berryv/g2-react',
|
||||
'@antv/g2',
|
||||
'react-syntax-highlighter',
|
||||
'@antv/gpt-vis',
|
||||
]);
|
||||
|
||||
module.exports = withTM({
|
||||
...nextConfig,
|
||||
|
Reference in New Issue
Block a user