Lines 1-50
Link Here
|
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: |
10 |
"./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts", |
11 |
"admin/record_sources": |
12 |
"./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts", |
13 |
}, |
14 |
output: { |
15 |
filename: "[name].js", |
16 |
path: path.resolve( |
17 |
__dirname, |
18 |
"koha-tmpl/intranet-tmpl/prog/js/vue/dist/" |
19 |
), |
20 |
chunkFilename: "[name].js", |
21 |
}, |
22 |
module: { |
23 |
rules: [ |
24 |
{ |
25 |
test: /\.vue$/, |
26 |
loader: "vue-loader", |
27 |
exclude: [path.resolve(__dirname, "t/cypress/")], |
28 |
}, |
29 |
{ |
30 |
test: /\.ts$/, |
31 |
loader: "ts-loader", |
32 |
options: { |
33 |
appendTsSuffixTo: [/\.vue$/], |
34 |
}, |
35 |
exclude: [path.resolve(__dirname, "t/cypress/")], |
36 |
}, |
37 |
{ |
38 |
test: /\.css$/, |
39 |
use: ["style-loader", "css-loader"], |
40 |
}, |
41 |
], |
42 |
}, |
43 |
plugins: [ |
44 |
new VueLoaderPlugin(), |
45 |
new webpack.DefinePlugin({ |
46 |
__VUE_OPTIONS_API__: true, |
47 |
__VUE_PROD_DEVTOOLS__: false, |
48 |
}), |
49 |
], |
50 |
}; |
51 |
- |