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" },