This repository has been archived by the owner on Dec 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
55 lines (53 loc) · 2.02 KB
/
webpack.config.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const path = require("path");
const WebpackUserscript = require("webpack-userscript");
const dev = process.env.NODE_ENV === "development";
module.exports = {
mode: dev ? "development" : "production",
entry: path.resolve(__dirname, "src", "index.ts"),
module: {
rules: [
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [".tsx", ".ts", ".js"],
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "meetify.user.js",
},
devServer: {
contentBase: path.resolve(__dirname, "dist"),
port: 8080,
},
devtool: dev ? 'eval-source-map' : undefined,
plugins: [
new WebpackUserscript({
headers: {
name: "Meetify",
namespace: "https://github.com/KMU-Dev/meetify",
version: dev ? `[version]-build.[buildNo]` : `[version]`,
description: "Google Meet notification tampermonkey script",
author: "Chao Tzu-Hsien",
match: ["https://meet.google.com/*"],
icon: "https://fonts.gstatic.com/s/i/productlogos/meet_2020q4/v1/web-64dp/logo_meet_2020q4_color_1x_web_64dp.png",
grant: [
"GM_notification",
],
homepage: "https://github.com/KMU-Dev/meetify",
updateURL: "https://jenkins.webzyno.com/job/KMU%20Development%20Team/job/meetify/job/master/lastSuccessfulBuild/artifact/dist/meetify.meta.js",
downloadURL: "https://jenkins.webzyno.com/job/KMU%20Development%20Team/job/meetify/job/master/lastSuccessfulBuild/artifact/dist/meetify.user.js",
supportURL: "https://github.com/KMU-Dev/meetify/issues",
},
proxyScript: {
baseUrl: "http://127.0.0.1:8080",
filename: "[basename].proxy.user.js",
enable: dev,
},
}),
],
};