before rsbuild remove
This commit is contained in:
@@ -1,3 +1,56 @@
|
||||
import { defineConfig } from '@rsbuild/core';
|
||||
import { pluginReact } from '@rsbuild/plugin-react';
|
||||
|
||||
export default defineConfig({});
|
||||
export default defineConfig({
|
||||
// configure Rsbuild plugins
|
||||
plugins: [
|
||||
pluginReact({ fastRefresh: true, })
|
||||
],
|
||||
|
||||
// options for build performance and runtime performance
|
||||
performance: {
|
||||
buildCache: true,
|
||||
removeConsole: true
|
||||
},
|
||||
|
||||
// options for build outputs
|
||||
output: {
|
||||
},
|
||||
|
||||
// options for local development
|
||||
dev: {
|
||||
liveReload: true,
|
||||
hmr: true,
|
||||
lazyCompilation: true,
|
||||
},
|
||||
|
||||
// options for HTML generation
|
||||
html: {
|
||||
},
|
||||
|
||||
// options for the low-level tools
|
||||
tools: {
|
||||
},
|
||||
|
||||
// options for module resolution
|
||||
resolve: {
|
||||
},
|
||||
|
||||
// options for input source code
|
||||
source: {
|
||||
},
|
||||
|
||||
// options for the Rsbuild server,
|
||||
// will take effect during local development and preview
|
||||
server: {
|
||||
open: false,
|
||||
},
|
||||
|
||||
// options for Web security
|
||||
security: {
|
||||
},
|
||||
|
||||
// define different Rsbuild configurations for each environment
|
||||
environments: {
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user