UNPKG

706 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import type { Plugin } from 'esbuild';
9import { CssUrl } from './stylesheet-processor';
10/**
11 * Creates an esbuild {@link Plugin} that loads all CSS url token references using the
12 * built-in esbuild `file` loader. A plugin is used to allow for all file extensions
13 * and types to be supported without needing to manually specify all extensions
14 * within the build configuration.
15 *
16 * @returns An esbuild {@link Plugin} instance.
17 */
18export declare function createCssResourcePlugin(url: CssUrl): Plugin;