jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

Add Feature: Per type newLine separator #263

Open GusGold opened 4 years ago

GusGold commented 4 years ago

Allows providing an object to options.newLine to specify a file separator based on the file type. e.g. Joining js types with a semicolon and newline, and css with just a new line:

useref({
    newLine: {
        js: ';\n',
        css: '\n'
    }
})
coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.02%) to 98.204% when pulling 4cc0edc525ec967b82c5933a1e153aaa6b229c10 on GusGold:master into 5a632ab18d3938027e21b6c1ac4a3149749c33ec on jonkemp:master.

GusGold commented 4 years ago

Hey @jonkemp

Please take a look at this PR when you get a chance. Thanks.

GusGold commented 4 years ago

A friendly reminder to take a look at this PR @jonkemp

jonkemp commented 4 years ago

Thank you for your interest. I am maintaining this project but not actively developing it. Pull requests are still welcome but a pull request that implements a new feature is going to take some convincing to add. I am not currently convinced that there is enough interest in this feature to warrant adding it at this time. That said I am more than happy to leave it open for feedback. If there is sufficient interest in this PR from others, I will reconsider it then.

GusGold commented 4 years ago

Okay, no worries