UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

24 lines (20 loc) 751 B
/* 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.hooks.thisCompilation.tap("JsonpTemplatePlugin", compilation => { new JsonpMainTemplatePlugin().apply(compilation.mainTemplate); new JsonpChunkTemplatePlugin().apply(compilation.chunkTemplate); new JsonpHotUpdateChunkTemplatePlugin().apply( compilation.hotUpdateChunkTemplate ); }); } } module.exports = JsonpTemplatePlugin;