Lyubomir Marinov пре 8 година
родитељ
комит
f72e7ffbc2
1 измењених фајлова са 13 додато и 11 уклоњено
  1. 13
    11
      webpack.config.js

+ 13
- 11
webpack.config.js Прегледај датотеку

@@ -8,8 +8,8 @@ var webpack = require('webpack');
8 8
 
9 9
 var aui_css = __dirname + '/node_modules/@atlassian/aui/dist/aui/css/';
10 10
 var minimize
11
-    = process.argv.indexOf('-p') != -1
12
-        || process.argv.indexOf('--optimize-minimize') != -1;
11
+    = process.argv.indexOf('-p') !== -1
12
+        || process.argv.indexOf('--optimize-minimize') !== -1;
13 13
 var node_modules = __dirname + '/node_modules/';
14 14
 var plugins = [
15 15
     new HasteResolverPlugin()
@@ -32,7 +32,7 @@ if (minimize) {
32 32
 var config = {
33 33
     devtool: 'source-map',
34 34
     module: {
35
-        loaders: [{
35
+        loaders: [ {
36 36
             // Transpile ES2015 (aka ES6) to ES5. Accept the JSX syntax by React
37 37
             // as well.
38 38
 
@@ -50,20 +50,20 @@ var config = {
50 50
                 ].map(require.resolve)
51 51
             },
52 52
             test: /\.jsx?$/
53
-        },{
53
+        }, {
54 54
             // Expose jquery as the globals $ and jQuery because it is expected
55 55
             // to be available in such a form by multiple jitsi-meet
56 56
             // dependencies including AUI, lib-jitsi-meet.
57 57
 
58 58
             loader: 'expose?$!expose?jQuery',
59 59
             test: /\/node_modules\/jquery\/.*\.js$/
60
-        },{
60
+        }, {
61 61
             // Disable AMD for the Strophe.js library or its imports will fail
62 62
             // at runtime.
63 63
 
64 64
             loader: 'imports?define=>false&this=>window',
65 65
             test: strophe
66
-        },{
66
+        }, {
67 67
             // Allow CSS to be imported into JavaScript.
68 68
 
69 69
             loaders: [
@@ -71,7 +71,7 @@ var config = {
71 71
                 'css'
72 72
             ],
73 73
             test: /\.css$/
74
-        },{
74
+        }, {
75 75
             // Emit the static assets of AUI such as images that are referenced
76 76
             // by CSS into the output path.
77 77
 
@@ -82,13 +82,15 @@ var config = {
82 82
                 name: '[path][name].[ext]'
83 83
             },
84 84
             test: /\.(gif|png|svg)$/
85
-        },{
86
-            //Adds the ability to import json files.
85
+        }, {
86
+            // Enable the import of JSON files.
87
+
87 88
             loader: 'json',
88 89
             exclude: node_modules,
89 90
             test: /\.json$/
90
-        }],
91
+        } ],
91 92
         noParse: [
93
+
92 94
             // Do not parse the files of the Strophe.js library or at least
93 95
             // parts of the properties of the Strophe global variable will be
94 96
             // missing and strophejs-plugins will fail at runtime.
@@ -122,7 +124,7 @@ var config = {
122 124
             'jQuery-Impromptu':
123 125
                 'jQuery-Impromptu/dist/jquery-impromptu'
124 126
                     + (minimize ? '.min' : '')
125
-                    + '.js',
127
+                    + '.js'
126 128
         },
127 129
         packageAlias: 'browser'
128 130
     }

Loading…
Откажи
Сачувај