fixed
parent
7167a8b467
commit
2b9599781e
|
@ -52,7 +52,12 @@ export default function compile(root = '', dist = '', conf = {}, verbose) {
|
||||||
)
|
)
|
||||||
const INJECT_SCSS = readFile(conf.inject?.scss)
|
const INJECT_SCSS = readFile(conf.inject?.scss)
|
||||||
const LEGACY_MODE = !!conf.legacy
|
const LEGACY_MODE = !!conf.legacy
|
||||||
const { ABS_CONFIG_FILEPATH, compileOptions = {}, define = {} } = conf
|
const {
|
||||||
|
ABS_CONFIG_FILEPATH,
|
||||||
|
compileOptions = {},
|
||||||
|
define = {},
|
||||||
|
plugin = []
|
||||||
|
} = conf
|
||||||
const { isCustomElement = defaultCustomElement } = compileOptions
|
const { isCustomElement = defaultCustomElement } = compileOptions
|
||||||
|
|
||||||
conf.inject = conf.inject || { scss: '' }
|
conf.inject = conf.inject || { scss: '' }
|
||||||
|
@ -203,6 +208,8 @@ export default function compile(root = '', dist = '', conf = {}, verbose) {
|
||||||
doJob()
|
doJob()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
options.plugin = plugin
|
||||||
|
options.isCustomElement = isCustomElement
|
||||||
compileFiles(currentPage, page, list, options, {
|
compileFiles(currentPage, page, list, options, {
|
||||||
verbose,
|
verbose,
|
||||||
dist,
|
dist,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "fite",
|
"name": "fite",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"bin": {
|
"bin": {
|
||||||
"fite": "index.js"
|
"fite": "index.js"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue