master
yutent 2024-07-31 14:15:29 +08:00
parent 7167a8b467
commit 2b9599781e
2 changed files with 9 additions and 2 deletions

View File

@ -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,

View File

@ -1,7 +1,7 @@
{
"name": "fite",
"type": "module",
"version": "1.4.0",
"version": "1.4.1",
"bin": {
"fite": "index.js"
},