Sha256: 6b6d13c0168bb08fc492de4c8a47f2f647f58ff9c9529da2da63905740c8c75c
Contents?: true
Size: 743 Bytes
Versions: 10
Compression:
Stored size: 743 Bytes
Contents
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const JsonpMainTemplatePlugin = require("./JsonpMainTemplatePlugin"); const JsonpChunkTemplatePlugin = require("./JsonpChunkTemplatePlugin"); const JsonpHotUpdateChunkTemplatePlugin = require("./JsonpHotUpdateChunkTemplatePlugin"); class JsonpTemplatePlugin { apply(compiler) { compiler.plugin("this-compilation", (compilation) => { compilation.mainTemplate.apply(new JsonpMainTemplatePlugin()); compilation.chunkTemplate.apply(new JsonpChunkTemplatePlugin()); compilation.hotUpdateChunkTemplate.apply(new JsonpHotUpdateChunkTemplatePlugin()); }); } } module.exports = JsonpTemplatePlugin;
Version data entries
10 entries across 6 versions & 3 rubygems