Add rollup-plugin-minify-html-template-literals to node_modules
R=jacktfranklin@chromium.org
Bug: 1213034
Change-Id: I5da8225f60b53870a1c67d6b5d02a464c08f4eb2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2917088
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
diff --git a/node_modules/clean-css/lib/options/inline-request.js b/node_modules/clean-css/lib/options/inline-request.js
new file mode 100644
index 0000000..1e14c63
--- /dev/null
+++ b/node_modules/clean-css/lib/options/inline-request.js
@@ -0,0 +1,22 @@
+var url = require('url');
+
+var override = require('../utils/override');
+
+function inlineRequestFrom(option) {
+ return override(
+ /* jshint camelcase: false */
+ proxyOptionsFrom(process.env.HTTP_PROXY || process.env.http_proxy),
+ option || {}
+ );
+}
+
+function proxyOptionsFrom(httpProxy) {
+ return httpProxy ?
+ {
+ hostname: url.parse(httpProxy).hostname,
+ port: parseInt(url.parse(httpProxy).port)
+ } :
+ {};
+}
+
+module.exports = inlineRequestFrom;