UNPKG

tpa-style-webpack-plugin

Version:

A Webpack plugin that handles wix tpa styles, it separates static css file that injects dynamic style at runtime.

7 lines (6 loc) 233 B
module.exports = function (content) { this.cacheable && this.cacheable(); const params = JSON.parse(this.query.slice(1)); content = content.replace(/__COMPILATION_HASH__/g, params.compilationHash); return content; };