Use index.d.ts only (not foo/foo.d.ts) (#12834)

* Use index.d.ts only (not foo/foo.d.ts)

* Convert more packages

* Remove unnecessary references
This commit is contained in:
Andy
2016-11-21 12:58:06 -08:00
committed by GitHub
parent 6928f44556
commit 8841dfc744
248 changed files with 119 additions and 157 deletions

View File

@@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"webpack-dev-server.d.ts",
"index.d.ts",
"webpack-dev-server-tests.ts"
]
}

View File

@@ -1,5 +1,3 @@
/// <reference path="webpack-dev-server.d.ts" />
import * as webpack from 'webpack';
import * as WebpackDevServer from 'webpack-dev-server';
var compiler = webpack({});
@@ -20,7 +18,7 @@ server = new WebpackDevServer(compiler, {
// Enable special support for Hot Module Replacement
// Page is no longer updated, but a "webpackHotUpdate" message is send to the content
// Use "webpack/hot/dev-server" as additional module in your entry point
// Note: this does _not_ add the `HotModuleReplacementPlugin` like the CLI option does.
// Note: this does _not_ add the `HotModuleReplacementPlugin` like the CLI option does.
// Set this as true if you want to access dev server from arbitrary url.
// This is handy if you are using a html5 router.