test/cases/custom-loader-with-new-url-and-public-path-1/app/mockLoader.js
raw| 1 | export default function loader() { |
| 2 | const callback = this.async(); |
| 3 | |
| 4 | callback( |
| 5 | null, |
| 6 | `export default [ |
| 7 | [module.id, ".foo {background: url(" + new URL("./img.png", import.meta.url) + ")}", ""], |
| 8 | [module.id, ".bar {background: url(" + new URL("../outer-img.png", import.meta.url) + ")}", ""], |
| 9 | [module.id, ".baz {background: url(" + new URL("./nested/nested-img.png", import.meta.url) + ")}", ""] |
| 10 | ]`, |
| 11 | ); |
| 12 | } |