ng-packagr
Version:
Compile and package Angular libraries in Angular Package Format (APF)
19 lines (18 loc) • 706 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import type { Plugin } from 'esbuild';
import { CssUrl } from './stylesheet-processor';
/**
* Creates an esbuild {@link Plugin} that loads all CSS url token references using the
* built-in esbuild `file` loader. A plugin is used to allow for all file extensions
* and types to be supported without needing to manually specify all extensions
* within the build configuration.
*
* @returns An esbuild {@link Plugin} instance.
*/
export declare function createCssResourcePlugin(url: CssUrl): Plugin;