@@ -2,40 +2,40 @@ var path = require("path");
22var webpack = require ( "webpack" ) ;
33
44var 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 : / \. m i n \. j s $ / ,
25- } )
26- ] ,
27- module : {
28- loaders : [
29- {
30- test : / \. t s x ? $ / ,
31- loader : "awesome-typescript-loader" ,
32- exclude : / ( n o d e _ m o d u l e s | _ _ t e s t s _ _ ) /
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 : / \. m i n \. j s $ / ,
25+ } )
26+ ] ,
27+ module : {
28+ loaders : [
29+ {
30+ test : / \. t s x ? $ / ,
31+ loader : "awesome-typescript-loader" ,
32+ exclude : / ( n o d e _ m o d u l e s | _ _ t e s t s _ _ ) /
33+ }
34+ ]
35+ } ,
36+ externals : {
37+ "react" : { root : 'React' , amd : 'react' , commonjs2 : 'react' , commonjs : 'react' }
38+ }
3939} ;
4040
4141module . exports = config ;
0 commit comments