* Returns interpolated path. * @template {PathData} [T=PathData] * @param {string | import("./TemplatedPathPlugin").TemplatePathFn<T>} filename used to get asset path with hash * @param {T=} data context data * @returns {string} interpolated path
(filename, data = /** @type {T} */ ({}))
| 5711 | * @returns {string} interpolated path |
| 5712 | */ |
| 5713 | getPath(filename, data = /** @type {T} */ ({})) { |
| 5714 | if (!data.hash) { |
| 5715 | data = { |
| 5716 | hash: this.hash, |
| 5717 | ...data |
| 5718 | }; |
| 5719 | } |
| 5720 | return this.getAssetPath(filename, data); |
| 5721 | } |
| 5722 | |
| 5723 | /** |
| 5724 | * Gets path with info. |
no test coverage detected