mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Add optimizeSvgEncode option
This commit is contained in:
Vendored
+7
@@ -84,6 +84,13 @@ declare namespace url {
|
||||
*/
|
||||
ignoreFragmentWarning?: boolean;
|
||||
|
||||
/**
|
||||
* Reduce size of inlined svg (IE9+, Android 3+)
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
optimizeSvgEncode?: boolean;
|
||||
|
||||
/**
|
||||
* Determine wether a file should be inlined.
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ const single: postcss.Transformer = url({ url: 'copy', assetsPath: 'img', useHas
|
||||
|
||||
const multiple: postcss.Transformer = url([
|
||||
{ filter: '**/assets/copy/*.png', url: 'copy', assetsPath: 'img', useHash: true },
|
||||
{ filter: '**/assets/inline/*.svg', url: 'inline' },
|
||||
{ filter: '**/assets/inline/*.svg', url: 'inline', optimizeSvgEncode: true },
|
||||
{ filter: '**/assets/**/*.gif', url: 'rebase' },
|
||||
{ filter: 'cdn/**/*', url: (asset) => `https://cdn.url/${asset.url}` },
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user