Bug 32030: ERM - Add "integration" tests using Cypress
[koha.git] / webpack.config.js
1 const { VueLoaderPlugin } = require("vue-loader");
2 const autoprefixer = require("autoprefixer");
3 const path = require("path");
4
5 module.exports = {
6   entry: {
7     main: "./koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts",
8   },
9   output: {
10     filename: "[name].js",
11     path: path.resolve(__dirname, "koha-tmpl/intranet-tmpl/prog/js/vue/dist/"),
12     chunkFilename: "[name].js",
13   },
14   module: {
15     rules: [
16       {
17         test: /\.vue$/,
18         loader: "vue-loader",
19         exclude: [path.resolve(__dirname, "cypress/")],
20       },
21       {
22         test: /\.ts$/,
23         loader: 'ts-loader',
24         options: {
25           appendTsSuffixTo: [/\.vue$/]
26         },
27         exclude: [path.resolve(__dirname, "cypress/")],
28       },
29       {
30         test: /\.css$/,
31         use: ['style-loader', 'css-loader'],
32       }
33     ],
34   },
35   plugins: [
36     new VueLoaderPlugin(),
37   ],
38 };