Add missing properties for webpack

This commit is contained in:
Jungman
2015-12-19 20:35:43 +09:00
parent 40c60850ad
commit 95c02169ba
2 changed files with 31 additions and 1 deletions
+27
View File
@@ -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 = {
+4 -1
View File
@@ -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[];