Skip to content

Commit 8fc846c

Browse files
chore(webpack): tabs to spaces
1 parent 332ccc3 commit 8fc846c

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

webpack.config.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@ var path = require("path");
22
var webpack = require("webpack");
33

44
var config = {
5-
entry: {
6-
"ui-router-react": ["./src/index.ts"],
7-
"ui-router-react.min": ["./src/index.ts"]
8-
},
9-
output: {
10-
path: path.resolve(__dirname, "_bundles"),
11-
filename: "[name].js",
12-
libraryTarget: "umd",
13-
library: "UIRouterReact",
14-
umdNamedDefine: true
15-
},
16-
resolve: {
17-
extensions: [".ts", ".tsx", ".js"]
18-
},
19-
watch: process.env.WATCH === 'true',
20-
devtool: 'source-map',
21-
plugins: [
22-
new webpack.optimize.UglifyJsPlugin({
23-
minimize: true,
24-
include: /\.min\.js$/,
25-
})
26-
],
27-
module: {
28-
loaders: [
29-
{
30-
test: /\.tsx?$/,
31-
loader: "awesome-typescript-loader",
32-
exclude: /(node_modules|__tests__)/
33-
}
34-
]
35-
},
36-
externals: {
37-
"react": { root: 'React', amd: 'react', commonjs2: 'react', commonjs: 'react' }
38-
}
5+
entry: {
6+
"ui-router-react": ["./src/index.ts"],
7+
"ui-router-react.min": ["./src/index.ts"]
8+
},
9+
output: {
10+
path: path.resolve(__dirname, "_bundles"),
11+
filename: "[name].js",
12+
libraryTarget: "umd",
13+
library: "UIRouterReact",
14+
umdNamedDefine: true
15+
},
16+
resolve: {
17+
extensions: [".ts", ".tsx", ".js"]
18+
},
19+
watch: process.env.WATCH === 'true',
20+
devtool: 'source-map',
21+
plugins: [
22+
new webpack.optimize.UglifyJsPlugin({
23+
minimize: true,
24+
include: /\.min\.js$/,
25+
})
26+
],
27+
module: {
28+
loaders: [
29+
{
30+
test: /\.tsx?$/,
31+
loader: "awesome-typescript-loader",
32+
exclude: /(node_modules|__tests__)/
33+
}
34+
]
35+
},
36+
externals: {
37+
"react": { root: 'React', amd: 'react', commonjs2: 'react', commonjs: 'react' }
38+
}
3939
};
4040

4141
module.exports = config;

0 commit comments

Comments
 (0)