Skip to content

Commit cef94e1

Browse files
alan-agius4filipesilva
authored andcommitted
docs(@ngtools/webpack): update options in readme
1 parent b3c333a commit cef94e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/ngtools/webpack/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ The loader works with webpack plugin to compile the application's TypeScript. It
3737
- `jitMode` [default: `false`] - Enables JIT compilation and do not refactor the code to bootstrap. This replaces `templateUrl: "string"` with `template: require("string")` (and similar for styles) to allow for webpack to properly link the resources.
3838
- `directTemplateLoading` [default: `true`] - Causes the plugin to load component templates (HTML) directly from the filesystem. This is more efficient if only using the `raw-loader` to load component templates. Do not enable this option if additional loaders are configured for component templates.
3939
- `fileReplacements` [default: none] - Allows replacing TypeScript files with other TypeScript files in the build. This option acts on fully resolved file paths.
40-
- `inlineStyleMimeType` [default: none] - When set to a valid MIME type, enables conversion of an Angular Component's inline styles into data URIs. This allows a Webpack 5 configuration rule to use the `mimetype` condition to process the inline styles. A valid MIME type is a string starting with `text/` (Example for CSS: `text/css`).
40+
- `inlineStyleFileExtension` [default: none] - When set inline component styles will be processed by Webpack as files with the provided extension.

packages/ngtools/webpack/src/ivy/plugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface AngularWebpackPluginOptions {
4747
emitClassMetadata: boolean;
4848
emitNgModuleScope: boolean;
4949
jitMode: boolean;
50+
/** @deprecated use `inlineStyleFileExtension` instead. */
5051
inlineStyleMimeType?: string;
5152
inlineStyleFileExtension?: string;
5253
}

0 commit comments

Comments
 (0)