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

Version Path
ilog-0.4.1 node_modules/webpack/lib/JsonpTemplatePlugin.js
ilog-0.4.0 node_modules/webpack/lib/JsonpTemplatePlugin.js
ilog-0.3.3 node_modules/webpack/lib/JsonpTemplatePlugin.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/JsonpTemplatePlugin.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/lib/JsonpTemplatePlugin.js
optimacms-0.4.3 spec/dummy/node_modules/webpack/lib/JsonpTemplatePlugin.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/lib/JsonpTemplatePlugin.js
optimacms-0.4.2 spec/dummy/node_modules/webpack/lib/JsonpTemplatePlugin.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/JsonpTemplatePlugin.js
cortex-0.1.3 spec/dummy/node_modules/webpack/lib/JsonpTemplatePlugin.js