forked from jenkinsci/active-choices-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
27 lines (26 loc) · 811 Bytes
/
webpack.config.js
File metadata and controls
27 lines (26 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const path = require("path");
module.exports = (env, argv) => ({
mode: "development",
entry: {
"UnoChoice": [
path.join(__dirname, "src/main/resources/org/biouno/unochoice/stapler/unochoice/UnoChoice.es6"),
],
"Util": [
path.join(__dirname, "src/main/resources/org/biouno/unochoice/stapler/unochoice/Util.ts"),
],
},
output: {
path: path.join(__dirname, "target/classes/org/biouno/unochoice/stapler/unochoice"),
iife: false,
},
devtool: argv.mode === "production" ? "source-map" : "inline-cheap-module-source-map",
module: {
rules: [
{use: "ts-loader", test: /\.ts$/},
{use: "babel-loader", test: /\.es6$/},
],
},
externals: {
jquery: 'jQuery'
}
});