Browse Source

Don't use path.resolve

dev1
Lyubomir Marinov 8 years ago
parent
commit
1dfd035bf6
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      webpack.config.babel.js

+ 4
- 5
webpack.config.babel.js View File

@@ -1,7 +1,6 @@
1 1
 /* global __dirname */
2 2
 
3 3
 import child_process from 'child_process'; // eslint-disable-line camelcase
4
-import path from 'path';
5 4
 import process from 'process';
6 5
 
7 6
 const minimize
@@ -17,13 +16,13 @@ export default {
17 16
         loaders: [ {
18 17
             // Version this build of the lib-jitsi-meet library.
19 18
 
20
-            include: path.resolve(__dirname, './JitsiMeetJS.js'),
19
+            include: `${__dirname}/JitsiMeetJS.js`,
21 20
             loader: 'string-replace',
22 21
             query: {
23 22
                 flags: 'g',
24 23
                 replace:
25 24
                     child_process.execSync( // eslint-disable-line camelcase
26
-                            path.resolve(__dirname, './get-version.sh'))
25
+                            `${__dirname}/get-version.sh`)
27 26
 
28 27
                         // The type of the return value of
29 28
                         // child_process.execSync is either Buffer or String.
@@ -39,8 +38,8 @@ export default {
39 38
             // Transpile ES2015 (aka ES6) to ES5.
40 39
 
41 40
             exclude: [
42
-                path.resolve(__dirname, './modules/RTC/adapter.screenshare.js'),
43
-                path.resolve(__dirname, './node_modules/')
41
+                `${__dirname}/modules/RTC/adapter.screenshare.js`,
42
+                `${__dirname}/node_modules/`
44 43
             ],
45 44
             loader: 'babel',
46 45
             test: /\.js$/

Loading…
Cancel
Save