Explore
Sign In
skills/angular__angular
1
0
Fork 0
You've already forked angular__angular
mirror of https://github.com/angular/angular.git synced 2026-09-14 13:54:52 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
4070049d8a84364dadcbd5e40db1ea12255b06cb
angular__angular/aio/content/examples/angular-linker-plugin/webpack.config.mjs
T

27 lines
560 B
JavaScript
Raw Normal View History

docs: fix ellipsis in code-snippet in `creating-libraries` guide (#45820) When hard-coding content in a `<code-example>` tag inside an `.md` file, the content is treated as HTML by the Markdown processor and thus any characters with special meaning in HTML have to be encoded (or replaced with HTML entities). However, the content that is embedded into `<code-example>` tags via docregions is treated as text (since it is not parsed by the Markdown processor) and thus should not have encoded characters or HTML entities. PR Close #45820
2022-04-29 23:04:13 +03:00
// #docplaster ...
docs: improve consuming partial-Ivy code outside the Angular CLI (#44027) With this change we add an example of how to consume the linker plugin and also clean up the parts of this section. Closes #44026 PR Close #44027
2021-11-03 09:10:50 +01:00
// #docregion webpack-config
import linkerPlugin from '@angular/compiler-cli/linker/babel';
export default {
// #enddocregion webpack-config
// #docregion webpack-config
module: {
rules: [
{
test: /\.m?js$/,
use: {
loader: 'babel-loader',
options: {
plugins: [linkerPlugin],
compact: false,
cacheDirectory: true,
}
}
}
]
}
// #enddocregion webpack-config
// #docregion webpack-config
}
// #enddocregion webpack-config
Reference in New Issue Copy Permalink
Version: v1.25.5 Page: 1512ms Template: 3ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어