MCPcopy Index your code
hub / github.com/ampproject/amphtml / transformCssString

Function transformCssString

build-system/tasks/css/jsify-css.js:87–90  ·  view source on GitHub ↗

* Transform a css string using postcss. * @param {string} contents the css text to transform * @param {!Object=} opt_filename the filename of the file being transformed. Used for sourcemaps generation. * @return {!Promise } that resolves with the css content after * pro

(contents, opt_filename)

Source from the content-addressed store, hash-verified

85 * processing
86 */
87async function transformCssString(contents, opt_filename) {
88 const hash = md5(contents);
89 return transformCss(contents, hash, opt_filename);
90}
91
92/**
93 * 'Jsify' a CSS file - Adds vendor specific css prefixes to the css file,

Callers 1

initFunction · 0.85

Calls 2

md5Function · 0.85
transformCssFunction · 0.85

Tested by

no test coverage detected