url: prefix for assets

This commit is contained in:
Jason Miller
2020-08-12 18:17:27 -04:00
parent 33e3eff839
commit 68a5f45432
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import { builtinDecode, sniffMimeType, canDecodeImage } from '../lib/util';
import Processor from './processor';
import webpDataUrl from 'url-loader!./tiny.webp';
import webpDataUrl from 'url:./tiny.webp';
const webPSupported = canDecodeImage(webpDataUrl);

View File

@@ -1,4 +1,4 @@
import webpDataUrl from 'url-loader!../codecs/tiny.webp';
import webpDataUrl from 'url:../codecs/tiny.webp';
// Give TypeScript the correct global.
declare var self: ServiceWorkerGlobalScope;