mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
url: prefix for assets
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user