Browse Source

Simplify Webpack's configuration

Using both include and test for a loader which is to process a single
file is more complex than necessary. Reduce that to a test only.
dev1
Hristo Terezov 9 years ago
parent
commit
bea6a54911
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      webpack.config.babel.js

+ 1
- 2
webpack.config.babel.js View File

16
         loaders: [ {
16
         loaders: [ {
17
             // Version this build of the lib-jitsi-meet library.
17
             // Version this build of the lib-jitsi-meet library.
18
 
18
 
19
-            include: `${__dirname}/JitsiMeetJS.js`,
20
             loader: 'string-replace',
19
             loader: 'string-replace',
21
             query: {
20
             query: {
22
                 flags: 'g',
21
                 flags: 'g',
33
                             .trim(),
32
                             .trim(),
34
                 search: '{#COMMIT_HASH#}'
33
                 search: '{#COMMIT_HASH#}'
35
             },
34
             },
36
-            test: /\.js$/
35
+            test: `${__dirname}/JitsiMeetJS.js`
37
         }, {
36
         }, {
38
             // Transpile ES2015 (aka ES6) to ES5.
37
             // Transpile ES2015 (aka ES6) to ES5.
39
 
38
 

Loading…
Cancel
Save