diff --git a/modern-js/module-tools/api/config/build-config.html b/modern-js/module-tools/api/config/build-config.html index d3d53177a8..ebb50032b6 100644 --- a/modern-js/module-tools/api/config/build-config.html +++ b/modern-js/module-tools/api/config/build-config.html @@ -8,7 +8,7 @@ } })() -
buildConfig
是一个用来描述如何编译、生成构建产物的配置项,它包含了构建的所有配置。
object | object[]
构建的预设字符串或者预设函数。提供开箱即用的构建配置。
本章节描述了 Modern.js Module 关于调试工具相关的所有配置。
export default {
dev: {
diff --git a/modern-js/module-tools/api/config/plugins.html b/modern-js/module-tools/api/config/plugins.html
index b8b313062b..4d63e5f653 100644
--- a/modern-js/module-tools/api/config/plugins.html
+++ b/modern-js/module-tools/api/config/plugins.html
@@ -8,7 +8,7 @@
}
})()
-plugins
+plugins
本章介绍注册 Modern.js Module 插件的配置。
- 类型:
ModuleToolsPlugin[]
diff --git a/modern-js/module-tools/api/config/testing.html b/modern-js/module-tools/api/config/testing.html
index 2b127963a7..4ef0ef486c 100644
--- a/modern-js/module-tools/api/config/testing.html
+++ b/modern-js/module-tools/api/config/testing.html
@@ -8,7 +8,7 @@
}
})()
-testing
+testing
本章描述了测试相关的配置。
TIP需要先通过 pnpm run new
启用 单元测试 功能。
diff --git a/modern-js/module-tools/api/index.html b/modern-js/module-tools/api/index.html
index 20ee169841..aa37c3e4ed 100644
--- a/modern-js/module-tools/api/index.html
+++ b/modern-js/module-tools/api/index.html
@@ -8,4 +8,4 @@
}
})()
-Overview
配置项
- alias
- asset
- asset.path
- asset.limit
- asset.publicPath
- asset.svgr
- asset.svgr.include
- asset.svgr.exclude
- autoExternal
- autoExternal.dependencies
- autoExternal.peerDependencies
- banner
- buildType
- copy
- copy.patterns
- copy.options
- define
- dts
- dts.abortOnError
- dts.distPath
- dts.only
- dts.respectExternal
- dts.tsconfigPath
- esbuildOptions
- externalHelpers
- externals
- footer
- format
- hooks
- input
- jsx
- metafile
- minify
- outDir
- platform
- redirect
- resolve
- sideEffects
- sourceDir
- sourceMap
- sourceType
- splitting
- style
- style.less
- style.less.lessOptions
- style.less.additionalData
- style.less.implementation
- sass
- style.sass.sassOptions
- style.sass.additionalData
- style.sass.implementation
- style.postcss
- style.inject
- style.autoModules
- style.modules
- style.tailwindcss
- target
- transformImport
- transformLodash
- tsconfig
- umdGlobals
- umdModuleName
Plugin API