From 95c02169ba8fa58ac1092422efbd2e3174a206f4 Mon Sep 17 00:00:00 2001 From: Jungman Date: Sat, 19 Dec 2015 20:35:43 +0900 Subject: [PATCH] Add missing properties for webpack --- webpack/webpack-tests.ts | 27 +++++++++++++++++++++++++++ webpack/webpack.d.ts | 5 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/webpack/webpack-tests.ts b/webpack/webpack-tests.ts index 27a4a5385..8d794968f 100644 --- a/webpack/webpack-tests.ts +++ b/webpack/webpack-tests.ts @@ -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 = { diff --git a/webpack/webpack.d.ts b/webpack/webpack.d.ts index f2049bbc9..3889446b2 100644 --- a/webpack/webpack.d.ts +++ b/webpack/webpack.d.ts @@ -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[];