From 2b9599781e816cb26f97f043e5ef1fbeb11e1e78 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 31 Jul 2024 14:15:29 +0800 Subject: [PATCH] fixed --- lib/prod.js | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/prod.js b/lib/prod.js index 97b82c7..6d44678 100644 --- a/lib/prod.js +++ b/lib/prod.js @@ -52,7 +52,12 @@ export default function compile(root = '', dist = '', conf = {}, verbose) { ) const INJECT_SCSS = readFile(conf.inject?.scss) const LEGACY_MODE = !!conf.legacy - const { ABS_CONFIG_FILEPATH, compileOptions = {}, define = {} } = conf + const { + ABS_CONFIG_FILEPATH, + compileOptions = {}, + define = {}, + plugin = [] + } = conf const { isCustomElement = defaultCustomElement } = compileOptions conf.inject = conf.inject || { scss: '' } @@ -203,6 +208,8 @@ export default function compile(root = '', dist = '', conf = {}, verbose) { doJob() } } else { + options.plugin = plugin + options.isCustomElement = isCustomElement compileFiles(currentPage, page, list, options, { verbose, dist, diff --git a/package.json b/package.json index 70acbf4..7e819f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "1.4.0", + "version": "1.4.1", "bin": { "fite": "index.js" },