1 Star 4 Fork 2

云香水识 / group_chat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.esbuildrc.js 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
shiyangyang 提交于 2024-05-15 11:47 . 机器人配置支持POST参数
// @ts-check
const PluginPostCSS = require('esbuild-plugin-postcss').default
const { publicPath } = require('./config.json')
const plugin = PluginPostCSS({
declaration: true,
lessOptions: {
globalVars: {
publicPath: `"${publicPath}"`,
},
},
})
/**
* @type { import('f2e-middle-esbuild').BuildOptions }
*/
let config = {
sourcemap: true,
external: [
'react',
'react-dom',
'react-dom/client',
'react-router-dom',
'antd-mobile',
'dexie',
'lodash',
'antd-mobile-icons',
'ahooks/es/utils/domTarget',
'ahooks/es/utils/rect',
'ahooks/es/utils',
'ahooks',
'spark-md5',
'@/utils/pinyin'
],
entryPoints: ['src/index.tsx'],
outfile: 'static/bundle.js',
target: 'chrome70',
jsxFactory: 'React.createElement',
bundle: true,
format: 'iife',
// plugins: [PluginPostCSS()],
plugins: plugin ? [ plugin ] : undefined,
loader: {
'.tsx': 'tsx',
'.ts': 'ts',
'.png': 'file',
'.jpg': 'file',
'.svg': 'dataurl',
'.json': 'json',
'.txt': 'text',
},
tsconfig: './tsconfig.json',
};
module.exports = config
1
https://gitee.com/shy9120/group_chat.git
git@gitee.com:shy9120/group_chat.git
shy9120
group_chat
group_chat
master

搜索帮助