mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-07 20:38:54 -05:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import type { RuleSetRule } from 'webpack';
|
|
declare type AssetFolder = 'images' | 'files' | 'fonts' | 'medias';
|
|
declare type FileLoaderUtils = {
|
|
loaders: {
|
|
file: (options: {
|
|
folder: AssetFolder;
|
|
}) => RuleSetRule;
|
|
url: (options: {
|
|
folder: AssetFolder;
|
|
}) => RuleSetRule;
|
|
inlineMarkdownImageFileLoader: string;
|
|
inlineMarkdownLinkFileLoader: string;
|
|
};
|
|
rules: {
|
|
images: () => RuleSetRule;
|
|
fonts: () => RuleSetRule;
|
|
media: () => RuleSetRule;
|
|
svg: () => RuleSetRule;
|
|
otherAssets: () => RuleSetRule;
|
|
};
|
|
};
|
|
/**
|
|
* Returns unified loader configurations to be used for various file types.
|
|
*
|
|
* Inspired by https://github.com/gatsbyjs/gatsby/blob/8e6e021014da310b9cc7d02e58c9b3efe938c665/packages/gatsby/src/utils/webpack-utils.ts#L447
|
|
*/
|
|
export declare function getFileLoaderUtils(): FileLoaderUtils;
|
|
export {};
|
|
//# sourceMappingURL=webpackUtils.d.ts.map
|