-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev.js
32 lines (31 loc) · 911 Bytes
/
webpack.dev.js
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
28
29
30
31
32
const {merge} = require("webpack-merge");
const common = require("./webpack.common.js");
const {UserscriptPlugin} = require("webpack-userscript");
const {version} = require("./package.json");
const header = require("./src/header.json");
const path = require("path");
module.exports = merge(common, {
mode: "development",
output: {
filename: "betternovelpia.user.js",
publicPath: ""
},
devServer: {
client: {
overlay: false
},
static: {
directory: path.join(__dirname, "dist")
}
},
plugins: [
new UserscriptPlugin({
headers: {
...header,
version: `${version}-build.[buildNo]`,
updateURL: "http://127.0.0.1:8080/betternovelpia.user.js",
downloadURL: "http://127.0.0.1:8080/betternovelpia.user.js"
}
})
]
});