浏览代码

Fix webpack configuration on Windows

Keith Maika 3 年之前
父节点
当前提交
cb0b1765f3
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 2 1
      CHANGES.md
  2. 2 2
      webpack/webpack.common.js

+ 2 - 1
CHANGES.md

@@ -3,10 +3,11 @@
 ## 9.0.1 (2021-??-??)
 ## 9.0.1 (2021-??-??)
 
 
 - Updated translations: lt
 - Updated translations: lt
+- Increased stanza timeout from 10 to 20 seconds
 - #1761: Add a new dark theme based on the [Dracula](https://draculatheme.com/) theme
 - #1761: Add a new dark theme based on the [Dracula](https://draculatheme.com/) theme
 - #2751: Media not rendered when Converse runs in a browser extension
 - #2751: Media not rendered when Converse runs in a browser extension
+- #2786: Fix webpack configuration not working on Windows OS
 - #2789: Implement new hook parseMessageForCommands for plugins to add custom
 - #2789: Implement new hook parseMessageForCommands for plugins to add custom
-- Increased stanza timeout from 10 to 20 seconds
 
 
 ### New hooks and events
 ### New hooks and events
 
 

+ 2 - 2
webpack/webpack.common.js

@@ -24,7 +24,7 @@ module.exports = {
     module: {
     module: {
         rules: [
         rules: [
         {
         {
-            test: /LC_MESSAGES\/converse.po$/,
+            test: /LC_MESSAGES[\\/]converse.po$/,
             type: "json",
             type: "json",
             use: [
             use: [
             {
             {
@@ -36,7 +36,7 @@ module.exports = {
             }
             }
             ]
             ]
         }, {
         }, {
-            test: /webfonts\/.*\.(woff(2)?|ttf|eot|truetype|svg)(\?v=\d+\.\d+\.\d+)?$/,
+            test: /webfonts[\\/].*\.(woff(2)?|ttf|eot|truetype|svg)(\?v=\d+\.\d+\.\d+)?$/,
             use: [
             use: [
             {
             {
                 loader: 'file-loader',
                 loader: 'file-loader',