gulp-inline icon indicating copy to clipboard operation
gulp-inline copied to clipboard

Could I set inline or not inline in the file link?

Open Lynn-cc opened this issue 10 years ago • 3 comments

I think this would be more convenient. for example: <script src="./js/index.js?inline=true"></script>

Lynn-cc avatar Aug 13 '15 09:08 Lynn-cc

That's not a bad idea, though I think I would prefer to avoid in-band signalling like that (putting it in the url), and also probably opting out would be better rather than opting in. I'd be happy to accept a PR for something along these lines:

<script src='./js/index.js' no-inline></script>

ashaffer avatar Aug 13 '15 17:08 ashaffer

Might be worth using the defer and async attributes of the <script> element to also indicate that the resource should not be inlined.

dylansmith avatar Aug 14 '15 10:08 dylansmith

@dylansmith Ya, that's definitely true.

ashaffer avatar Aug 15 '15 01:08 ashaffer