diff --git a/@types/index.d.ts b/@types/index.d.ts index fbde30c..dadd857 100644 --- a/@types/index.d.ts +++ b/@types/index.d.ts @@ -343,6 +343,13 @@ declare namespace build { * * 路由 */ extensions?: options.extensions + + /** + * 配套插件 + * * 与 SSR 无关 + * * 命令参数 + */ + plugins? : Partial } namespace options { /** @@ -383,6 +390,23 @@ declare namespace build { [key in string]: Configuration } + /** + * 配套插件 + */ + type plugins = { + /** + * custom build element-ui + * - 来源 @bestminr/ui-xxx 项目 + */ + 'build-style': { + /** + * element-variables.scss 路径 + */ + entry: string + output: string + } + } + /** * exclude 排除 第三方包 */ diff --git a/package.json b/package.json index 922e3ee..790a9b2 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "service:dev": "./bin/dev", "service:bootstrap-storybook": "./bin/storybook" }, - "main": "./dist/index.js", + "main": "dist/index.js", "typings": "@types/index.d.ts", "repository": { "type": "git", diff --git a/src/index.ts b/src/index.ts index d890efe..035358d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,4 +36,6 @@ export function resoveBuildConfig(INJECT_CONTEXT, CONFIG) { // }) // console.log('--------------------------') return options -} \ No newline at end of file +} + +export { initConfig } from 'src/utils'