Closed kivS closed 7 years ago
Hi, that is an interesting question. You can try something like this -
// @if extension == 'chrome'
...use platform specific code...
// @endif
This uses the gulp-preprocess package for preprocessing HTML/JS files.
You could also write all the platform specific code in a separate file and import it only if the browser is Chrome (using a similar preprocessor conditional code).
Does this work for you?
I will switch to yarn shortly.
yep that solves it, thanks!
Hi there, nice project,
how to go about targeting single browser for apis not yet supported (like chrome's declarativeContent)?
also using yarn instead of npm provides better performance and reliability of deps
Thanks