Browse Source

fix(build) fix webpack-dev-server on Windows

Allow path separator of \ in addition to / in jQuery's path name.
master
Erik Demaine 4 years ago
parent
commit
58d38ca714
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      webpack.config.js

+ 1
- 1
webpack.config.js View File

@@ -102,7 +102,7 @@ const config = {
102 102
             // dependencies including lib-jitsi-meet.
103 103
 
104 104
             loader: 'expose-loader?$!expose-loader?jQuery',
105
-            test: /\/node_modules\/jquery\/.*\.js$/
105
+            test: /[/\\]node_modules[/\\]jquery[/\\].*\.js$/
106 106
         }, {
107 107
             // Allow CSS to be imported into JavaScript.
108 108
 

Loading…
Cancel
Save