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",
{
test: /\.vue$/,
loader: "vue-loader",
- exclude: [path.resolve(__dirname, "cypress/")],
+ exclude: [path.resolve(__dirname, "t/cypress/")],
},
{
test: /\.ts$/,
options: {
appendTsSuffixTo: [/\.vue$/]
},
- exclude: [path.resolve(__dirname, "cypress/")],
+ exclude: [path.resolve(__dirname, "t/cypress/")],
},
{
test: /\.css$/,
},
plugins: [
new VueLoaderPlugin(),
+ new webpack.DefinePlugin({
+ __VUE_OPTIONS_API__: true,
+ __VUE_PROD_DEVTOOLS__: false,
+ }),
],
};