临时取消特殊处理assets目录

pull/1/head
yutent 2023-05-22 17:25:36 +08:00
parent f09e6199ac
commit ba63cd14ba
2 changed files with 8 additions and 5 deletions

View File

@ -106,10 +106,13 @@ export default function compile(root = '', dist = '', conf = {}) {
case '.css': case '.css':
{ {
let code = compileScss(it.path) let code = compileScss(it.path)
if (!it.name.startsWith('assets')) { // if (!it.name.startsWith('assets')) {
it.name = 'assets/' + it.name // it.name = 'assets/' + it.name
} // }
fs.echo(code, join(dist, it.name.replace(/\.scss$/, '.css'))) fs.echo(
code,
join(dist, 'assets/', it.name.replace(/\.scss$/, '.css'))
)
} }
break break

View File

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