OSDN Git Service

v2.2.4
[serene/MyBrowser.git] / app / scripts / history.config.js
diff --git a/app/scripts/history.config.js b/app/scripts/history.config.js
new file mode 100644 (file)
index 0000000..e199049
--- /dev/null
@@ -0,0 +1,28 @@
+const fileName = 'History';
+
+module.exports = {
+    mode: 'production',
+    entry: `${__dirname}/../src/Pages/${fileName}.jsx`,
+    output: { path: `${__dirname}/../pages/static`, filename: `${fileName}.js` },
+    module: {
+        rules: [
+            {
+                test: /\.jsx$/,
+                use: [
+                    {
+                        loader: "babel-loader",
+                        options: {
+                            presets: [
+                                "@babel/preset-env",
+                                "@babel/react"
+                            ],
+                            plugins: [
+                                "@babel/plugin-proposal-class-properties"
+                            ]
+                        }
+                    }
+                ]
+            }
+        ]
+    }
+};
\ No newline at end of file