about summary refs log tree commit diff
path: root/web/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/webpack.config.js')
-rw-r--r--web/webpack.config.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/web/webpack.config.js b/web/webpack.config.js
index c7b248d87..e41f0a148 100644
--- a/web/webpack.config.js
+++ b/web/webpack.config.js
@@ -44,6 +44,16 @@ const imageLoaderConfiguration = {
   },
 }
 
+const reactNativeWebWebviewConfiguration = {
+  test: /postMock.html$/,
+  use: {
+    loader: 'file-loader',
+    options: {
+      name: '[name].[ext]',
+    },
+  },
+}
+
 module.exports = {
   mode: webpackEnv,
 
@@ -64,13 +74,18 @@ module.exports = {
   ],
 
   module: {
-    rules: [babelLoaderConfiguration, imageLoaderConfiguration],
+    rules: [
+      babelLoaderConfiguration,
+      imageLoaderConfiguration,
+      reactNativeWebWebviewConfiguration,
+    ],
   },
 
   resolve: {
     alias: {
       'react-native$': 'react-native-web',
       'react-native-linear-gradient': 'react-native-web-linear-gradient',
+      'react-native-webview': 'react-native-web-webview',
     },
     extensions: [
       '.web.tsx',