临时取消特殊处理assets目录
parent
f09e6199ac
commit
ba63cd14ba
11
lib/prod.js
11
lib/prod.js
|
@ -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
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "fite",
|
||||
"type": "module",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"bin": {
|
||||
"fite": "index.js"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue