klei/gulp-inject

async and defer tags

lsnjsolowiej opened this issue · 1 comments

Hi,
it would be nice to have an option to add defer and async tags to <script, or, more globally, all specified tags.

That really would be nice to have! But you're aware that gulp-inject allows you to do this? You only have to use a custom transform function, such as (for defer):

transform: ( path, file ) => {
    return `<script src="${ path }" defer></script>`;
}

Still, it would be nice to have a simple option instead.