gulp-inline
gulp-inline copied to clipboard
Could I set inline or not inline in the file link?
I think this would be more convenient.
for example: <script src="./js/index.js?inline=true"></script>
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>
Might be worth using the defer and async attributes of the <script> element to also indicate that the resource should not be inlined.
@dylansmith Ya, that's definitely true.