临时取消特殊处理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':
|
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
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue