From ba63cd14babada428c433102d37045fffcac8081 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 22 May 2023 17:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E5=8F=96=E6=B6=88=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=A4=84=E7=90=86assets=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/prod.js | 11 +++++++---- package.json | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/prod.js b/lib/prod.js index c8a2227..3ff8c94 100644 --- a/lib/prod.js +++ b/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 diff --git a/package.json b/package.json index 9d0d6ec..e9a706f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "1.1.3", + "version": "1.1.4", "bin": { "fite": "index.js" },