Bug 33928: Improve translation of title tags: Various
[koha.git] / webpack.config.js
1 const { VueLoaderPlugin } = require("vue-loader");
2 const autoprefixer = require("autoprefixer");
3 const path = require("path");
4 const webpack = require('webpack');
5
6 module.exports = {
7   entry: {
8     erm: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
9     preservation: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
10   },
11   output: {
12     filename: "[name].js",
13     path: path.resolve(__dirname, "koha-tmpl/intranet-tmpl/prog/js/vue/dist/"),
14     chunkFilename: "[name].js",
15   },
16   module: {
17     rules: [
18       {
19         test: /\.vue$/,
20         loader: "vue-loader",
21         exclude: [path.resolve(__dirname, "t/cypress/")],
22       },
23       {
24         test: /\.ts$/,
25         loader: 'ts-loader',
26         options: {
27           appendTsSuffixTo: [/\.vue$/]
28         },
29         exclude: [path.resolve(__dirname, "t/cypress/")],
30       },
31       {
32         test: /\.css$/,
33         use: ['style-loader', 'css-loader'],
34       }
35     ],
36   },
37   plugins: [
38     new VueLoaderPlugin(),
39     new webpack.DefinePlugin({
40       __VUE_OPTIONS_API__: true,
41       __VUE_PROD_DEVTOOLS__: false,
42     }),
43   ],
44 };