mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
`file-loader` resolves `import/require()` on a file into a url. This is non standard, undocumented, unsupported Webpack specific functionality. This was introduced in the Angular CLI before `postcss-cli-resources` existed and was never removed. Using `file-loader` and `postcss-cli-resources` are no longer needed with Webpack 5, because of the introduction of [Assets Modules](https://webpack.js.org/guides/asset-modules/). BREAKING CHANGE: The unsupported/undocumented, Webpack specific functionality to `import`/`require()` a non-module file has been removed. Before ```js import img from './images/asset.png'; ``` After ```html <img src="images/asset.png"> ```
Angular Webpack Build Facade
WIP