Commit Graph

9 Commits

Author SHA1 Message Date
Jason Anderson f371945a29 Add TemplatedPathPlugin 2014-09-11 15:31:08 +02:00
Tobias Koppers 0380796af2 Merged PR #362
code style fixes
2014-08-27 16:25:28 +02:00
Jordan Klassen 95ab7a9960 Merge remote-tracking branch 'origin/master' into optional-require-as-global
Conflicts:
	lib/UmdMainTemplatePlugin.js
2014-08-19 10:23:33 -07:00
Quentin Raynaud 3c4284f011 add a semi-colon at the end of the UMD template
Rationale: the missing semi-colon can cause bugs in some edge cases where webpack
is used to generate a library that will be concatenated in dependent project.
2014-08-03 16:05:40 +02:00
Jordan Klassen 562c446a73 add 'umd2' libraryTarget for optional amd dependancies as globals 2014-07-22 01:45:14 -07:00
Jordan Klassen 6eac904631 Optional externals in amd use globals instead of an explicit dependency
There isn't any mechanism in the amdjs spec to provide optional
dependancies (although a requirejs loader plugin could do that, it's not
standard). The best approach found was knockout's optional dependancy on
jquery, for which it doesn't use require, it only uses globals.

This solution will need to be improved for use of requirejs/amd in
commonjs environments, and could be toggled with a flag.
2014-07-17 01:42:44 -07:00
Tobias Koppers 03c87c11a4 support [name] in chunkFilename
fixes #358
2014-07-17 01:52:41 +02:00
Tobias Koppers 5104661855 optional externals
track optional modules
optional externals for UMD and root
fixes #339
2014-07-03 00:00:06 +02:00
Tobias Koppers 3247725ba3 refactored MainTemplate to plugin interface 2014-06-02 21:23:53 +02:00