mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Add missing properties for webpack
This commit is contained in:
@@ -232,6 +232,33 @@ configuration = {
|
||||
|
||||
configuration = { output: { chunkFilename: "[chunkhash].bundle.js" } };
|
||||
|
||||
//
|
||||
// https://webpack.github.io/docs/configuration.html
|
||||
//
|
||||
|
||||
configuration = {
|
||||
entry: [
|
||||
"./entry1",
|
||||
"./entry2"
|
||||
]
|
||||
};
|
||||
|
||||
configuration = {
|
||||
devtool: "#inline-source-map"
|
||||
};
|
||||
|
||||
loader = {
|
||||
test: /\.jsx$/,
|
||||
include: [
|
||||
path.resolve(__dirname, "app/src"),
|
||||
path.resolve(__dirname, "app/test")
|
||||
],
|
||||
exclude: [
|
||||
path.resolve(__dirname, "node_modules")
|
||||
],
|
||||
loader: "babel-loader"
|
||||
};
|
||||
|
||||
declare var require: any;
|
||||
declare var path: any;
|
||||
configuration = {
|
||||
|
||||
Vendored
+4
-1
@@ -6,7 +6,8 @@
|
||||
declare module "webpack" {
|
||||
namespace webpack {
|
||||
interface Configuration {
|
||||
entry?: string|Entry;
|
||||
entry?: string|string[]|Entry;
|
||||
devtool?: string;
|
||||
output?: Output;
|
||||
module?: Module;
|
||||
plugins?: (Plugin|Function)[];
|
||||
@@ -28,6 +29,8 @@ declare module "webpack" {
|
||||
}
|
||||
|
||||
interface Loader {
|
||||
exclude?: string[];
|
||||
include?: string[];
|
||||
test: RegExp;
|
||||
loader?: string;
|
||||
loaders?: string[];
|
||||
|
||||
Reference in New Issue
Block a user