cadfa70e60
* #708 apply strictier linting rules and fix simple eslint bugs * #708 fix eslint errors relate to promise * #708 fix eslint import/no-extraneous-dependencies * #708 fix eslint errors of react-hook * #708 enable eslint check for typescript --------- Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
33 lines
673 B
TypeScript
33 lines
673 B
TypeScript
import { defineConfig } from '@rsbuild/core'
|
|
import { pluginReact } from '@rsbuild/plugin-react'
|
|
import { pluginStylus } from '@rsbuild/plugin-stylus'
|
|
import { pluginSvgr } from '@rsbuild/plugin-svgr'
|
|
|
|
export default defineConfig({
|
|
plugins: [pluginReact(), pluginStylus(), pluginSvgr()],
|
|
html: {
|
|
template: './public/index.html'
|
|
},
|
|
server: {
|
|
port: 5000,
|
|
historyApiFallback: true
|
|
},
|
|
source: {
|
|
entry: {
|
|
index: './src/index.tsx'
|
|
}
|
|
},
|
|
output: {
|
|
distPath: {
|
|
root: 'dist'
|
|
},
|
|
minify: false
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
react: require.resolve('react'),
|
|
'react-dom': require.resolve('react-dom')
|
|
}
|
|
}
|
|
})
|