mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix wrong-way-round conditional
This commit is contained in:
@@ -168,7 +168,7 @@ const thumbHash = (options: Options = {}): Plugin => {
|
||||
|
||||
if (cache.has(id)) {
|
||||
let loadedSource = cache.get(id) as importItem
|
||||
if (config.command === 'serve') {
|
||||
if (config.command !== 'serve') {
|
||||
const originalRefId = this.emitFile({
|
||||
type: 'asset',
|
||||
name: basename(cleanedId),
|
||||
@@ -211,7 +211,7 @@ const thumbHash = (options: Options = {}): Plugin => {
|
||||
|
||||
cache.set(id, loadedSource)
|
||||
|
||||
if (config.command === 'serve') {
|
||||
if (config.command !== 'serve') {
|
||||
const originalRefId = this.emitFile({
|
||||
type: 'asset',
|
||||
name: basename(cleanedId),
|
||||
|
||||
Reference in New Issue
Block a user