mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
url: prefix for assets
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { builtinDecode, sniffMimeType, canDecodeImage } from '../lib/util';
|
import { builtinDecode, sniffMimeType, canDecodeImage } from '../lib/util';
|
||||||
import Processor from './processor';
|
import Processor from './processor';
|
||||||
import webpDataUrl from 'url-loader!./tiny.webp';
|
import webpDataUrl from 'url:./tiny.webp';
|
||||||
|
|
||||||
const webPSupported = canDecodeImage(webpDataUrl);
|
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.
|
// Give TypeScript the correct global.
|
||||||
declare var self: ServiceWorkerGlobalScope;
|
declare var self: ServiceWorkerGlobalScope;
|
||||||
|
|||||||
Reference in New Issue
Block a user