
This commit is generated using: % perl misc/devel/tidy.pl *within* ktd, to get the same version of perltidy than what will be used by our CI (currently v20230309). Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
const { VueLoaderPlugin } = require("vue-loader");
|
|
const autoprefixer = require("autoprefixer");
|
|
const path = require("path");
|
|
const webpack = require("webpack");
|
|
|
|
module.exports = {
|
|
entry: {
|
|
erm: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
|
|
preservation:
|
|
"./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
|
|
"admin/record_sources":
|
|
"./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts",
|
|
},
|
|
output: {
|
|
filename: "[name].js",
|
|
path: path.resolve(
|
|
__dirname,
|
|
"koha-tmpl/intranet-tmpl/prog/js/vue/dist/"
|
|
),
|
|
chunkFilename: "[name].js",
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.vue$/,
|
|
loader: "vue-loader",
|
|
exclude: [path.resolve(__dirname, "t/cypress/")],
|
|
},
|
|
{
|
|
test: /\.ts$/,
|
|
loader: "ts-loader",
|
|
options: {
|
|
appendTsSuffixTo: [/\.vue$/],
|
|
},
|
|
exclude: [path.resolve(__dirname, "t/cypress/")],
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
use: ["style-loader", "css-loader"],
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new VueLoaderPlugin(),
|
|
new webpack.DefinePlugin({
|
|
__VUE_OPTIONS_API__: true,
|
|
__VUE_PROD_DEVTOOLS__: false,
|
|
}),
|
|
],
|
|
};
|