Fix wrong-way-round conditional

This commit is contained in:
Jade Ellis 2024-07-23 20:27:32 +01:00
parent 2cffe5172b
commit dfa8f2c5be
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -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),