YAML loader for webpack that imports .yml files as JSON objects. Version 2.1.0 is the latest stable release. This loader supports multiple documents via the `multiDocument` option and key blacklisting via `keysToRemove` to exclude sensitive keys from output. It is commonly used in webpack configurations to load YAML configuration files. The package is unmaintained since 2019 and relies on `js-yaml` for parsing. Alternatives like `yaml-loader` offer more active maintenance and broader compatibility with webpack 4+.
npm install yml-loaderVerified import paths — ran on the pinned version, not inferred.
Shows how to configure webpack to load YAML files using yml-loader with key removal option.
Use `module.rules` array with `use` property for webpack 2+.
Consider migrating to `yaml-loader` (npm: yaml-loader) which is actively maintained.
Install with `npm install --save-dev yml-loader`.
Install `js-yaml` with `npm install --save-dev js-yaml`.