dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

[Question/Feature Request] Is it possible to use this to include remote files? #113

Closed McOmghall closed 3 years ago

McOmghall commented 6 years ago

For example, to include fonts/css/images remotely it'd be very convenient to just do the following:

<!-- build:css inline -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins&subset=latin,latin-ext" type="text/css">
<!-- /build -->

Same for scripts and other resources.

dciccale commented 6 years ago

Remote resources are not being parsed. I don't have much time to do this feature, and is the first time it is asked for it.

Feel free to open a Pull request if you would like to develop this feature.

However I think a feature would be interesting to support if more use cases (and people) needs it.

McOmghall commented 6 years ago

I think most of the work will need to be done on https://github.com/dciccale/node-htmlprocessor so i'll do the pull request there.