{"version":3,"sources":["jsdelivr-header.js","/npm/html-before-js-webpack-plugin@0.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,SAAS,0BAA0B,GAClC,KAAK,QAAU,CAChB,CAEA,0BAA0B,UAAU,MAAQ,SAAU,GACrD,IAAI,EAAQ,KAAK,QAAQ,MACzB,EAAS,OAAO,eAAe,SAAU,EAAa,GACrD,EAAY,OAAO,8CAA8C,SAAU,EAAgB,GAC1F,IAAK,IAAI,EAAI,EAAM,OAAS,EAAG,GAAK,EAAG,IAAK,CAC3C,GAAI,EAAe,OAAO,QAAQ,KAAM,CACvC,IAAI,EAAO,KAAK,MAAM,IAAI,MAC1B,EAAM,GAAK,EAAM,GAAK,IAAM,CAC7B,CACA,EAAe,OAAO,GAAG,QAAQ,EAAM,GACxC,CACA,EAAS,KAAM,EAChB,GACD,GACD,EAEA,OAAO,QAAU","file":"/npm/html-before-js-webpack-plugin@0.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/html-before-js-webpack-plugin@0.0.3/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nfunction HtmlBeforeJSWebpackPlugin(options) {\n\tthis.options = options;\n}\n\nHtmlBeforeJSWebpackPlugin.prototype.apply = function (compiler) {\n\tvar paths = this.options.paths;\n\tcompiler.plugin('compilation', function (compilation, options) {\n\t\tcompilation.plugin('html-webpack-plugin-before-html-processing', function (htmlPluginData, callback) {\n\t\t\tfor (var i = paths.length - 1; i >= 0; i--) {\n\t\t\t\tif (htmlPluginData.plugin.options.hash) {\n\t\t\t\t\tvar hash = Date.parse(new Date());\n\t\t\t\t\tpaths[i] = paths[i] + '?' + hash;\n\t\t\t\t}\n\t\t\t\thtmlPluginData.assets.js.unshift(paths[i]);\n\t\t\t}\n\t\t\tcallback(null, htmlPluginData);\n\t\t});\n\t});\n};\n\nmodule.exports = HtmlBeforeJSWebpackPlugin;"]}