File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ var path = require ( "path" ) ;
2
+
3
+ module . exports = {
4
+ context : "./platforms/android/src/main/assets/app" ,
5
+ entry : {
6
+ app : "./app" ,
7
+ } ,
8
+ output : {
9
+ path : __dirname ,
10
+ pathinfo : true ,
11
+ libraryTarget : "commonjs2" ,
12
+ filename : "bundle.js"
13
+ } ,
14
+ //externals: {
15
+ //"crypto": "crypto",
16
+ //"process/browser.js": "process",
17
+ //"module.js": "module"
18
+ //},
19
+ externals : [
20
+ function ( context , request , callback ) {
21
+ if ( / \/ m o d u l e \. j s $ / . test ( request ) )
22
+ return callback ( null , "var module" ) ;
23
+ else if ( / b r o w s e r i f y / . test ( request ) ) {
24
+ return callback ( null , "var {}" ) ;
25
+ }
26
+ else
27
+ callback ( ) ;
28
+ }
29
+ ] ,
30
+ resolve : {
31
+ extensions : [ "" , ".js" ] ,
32
+ packageMains : [ "main" ] ,
33
+ modulesDirectories : [
34
+ "tns_modules" ,
35
+ ]
36
+ } ,
37
+ module : {
38
+ loaders : [
39
+ ]
40
+ }
41
+ }
You can’t perform that action at this time.
0 commit comments