Bug 32426: Changes for members/memberentry.pl
[koha-ffzg.git] / webpack.config.js
index 0c6183f..bbdcced 100644 (file)
@@ -1,10 +1,11 @@
 const { VueLoaderPlugin } = require("vue-loader");
 const autoprefixer = require("autoprefixer");
 const path = require("path");
+const webpack = require('webpack');
 
 module.exports = {
   entry: {
-    main: "./koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts",
+    erm: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
   },
   output: {
     filename: "[name].js",
@@ -16,7 +17,7 @@ module.exports = {
       {
         test: /\.vue$/,
         loader: "vue-loader",
-        exclude: [path.resolve(__dirname, "cypress/")],
+        exclude: [path.resolve(__dirname, "t/cypress/")],
       },
       {
         test: /\.ts$/,
@@ -24,7 +25,7 @@ module.exports = {
         options: {
           appendTsSuffixTo: [/\.vue$/]
         },
-        exclude: [path.resolve(__dirname, "cypress/")],
+        exclude: [path.resolve(__dirname, "t/cypress/")],
       },
       {
         test: /\.css$/,
@@ -34,5 +35,9 @@ module.exports = {
   },
   plugins: [
     new VueLoaderPlugin(),
+    new webpack.DefinePlugin({
+      __VUE_OPTIONS_API__: true,
+      __VUE_PROD_DEVTOOLS__: false,
+    }),
   ],
 };