1 const { VueLoaderPlugin } = require("vue-loader");
2 const autoprefixer = require("autoprefixer");
3 const path = require("path");
4 const webpack = require('webpack');
8 erm: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
9 preservation: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
12 filename: "[name].js",
13 path: path.resolve(__dirname, "koha-tmpl/intranet-tmpl/prog/js/vue/dist/"),
14 chunkFilename: "[name].js",
21 exclude: [path.resolve(__dirname, "t/cypress/")],
27 appendTsSuffixTo: [/\.vue$/]
29 exclude: [path.resolve(__dirname, "t/cypress/")],
33 use: ['style-loader', 'css-loader'],
38 new VueLoaderPlugin(),
39 new webpack.DefinePlugin({
40 __VUE_OPTIONS_API__: true,
41 __VUE_PROD_DEVTOOLS__: false,