Merge webpack-env.* into webpack.*

This commit is contained in:
tkqubo
2015-10-11 14:41:32 +09:00
parent 3fc1377ce2
commit b123aa5469
4 changed files with 117 additions and 118 deletions
+19
View File
@@ -386,3 +386,22 @@ plugin = new webpack.ExtendedAPIPlugin();
plugin = new webpack.NoErrorsPlugin();
plugin = new webpack.WatchIgnorePlugin(paths);
//
// http://webpack.github.io/docs/api-in-modules.html
//
interface SomeModule {
someMethod(): void;
}
let someModule: SomeModule = require('./someModule');
someModule.someMethod();
let context2 = require.context('./somePath', true);
let contextModule: SomeModule = context2('./someModule');
require(['./someModule', './otherModule'], (someModule: SomeModule, otherModule: any) => {
});