(url: string, contents: string, hashed: boolean = true)
| 341 | private files: StaticFile[] = []; |
| 342 | |
| 343 | addFile(url: string, contents: string, hashed: boolean = true): AssetGroupBuilder { |
| 344 | const file: StaticFile = {url, contents, hash: undefined}; |
| 345 | if (hashed) { |
| 346 | file.hash = sha1(contents); |
| 347 | } |
| 348 | this.files.push(file); |
| 349 | return this; |
| 350 | } |
| 351 | |
| 352 | finish(): ConfigBuilder { |
| 353 | return this.up; |
no test coverage detected