Updated Readme and webpack-config

This commit is contained in:
Christoph Oberhofer
2015-10-14 19:03:34 -04:00
parent 6a56d7a1c2
commit 0e917e4009
8 changed files with 43 additions and 16 deletions
-2
View File
@@ -3,13 +3,11 @@ var OriginalSource = require("webpack-core/lib/OriginalSource");
function MyUmdPlugin(options) {
this.name = options.library;
console.log(this.name);
}
module.exports = MyUmdPlugin;
MyUmdPlugin.prototype.apply = function(compiler) {
compiler.plugin("this-compilation", function(compilation) {
var mainTemplate = compilation.mainTemplate;
console.log("Compilation: " + (typeof compilation.templatesPlugin));
compilation.templatesPlugin("render-with-entry", function(source, chunk, hash) {
var amdFactory = "factory";