docker-registry-ui/rollup/copy-transform.js
Joxit 1173453f72
feat: merge static version with latest and add license
BREAKING CHANGE: Now only one tag will be published: `latest`. This tag will include both the standard and latest version
2021-03-31 07:10:50 +02:00

6 lines
189 B
JavaScript

export default function (contents, name) {
if (name.endsWith('.svg')) {
return contents.toString('utf8').split(/\n */).join(' ').replace(/\s+/g, ' ').trim();
}
return contents;
}