临时取消特殊处理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':
{
let code = compileScss(it.path)
if (!it.name.startsWith('assets')) {
it.name = 'assets/' + it.name
}
fs.echo(code, join(dist, it.name.replace(/\.scss$/, '.css')))
// if (!it.name.startsWith('assets')) {
// it.name = 'assets/' + it.name
// }
fs.echo(
code,
join(dist, 'assets/', it.name.replace(/\.scss$/, '.css'))
)
}
break

View File

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