forked from cos-y/Majya
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
35 lines (34 loc) · 816 Bytes
/
webpack.config.js
File metadata and controls
35 lines (34 loc) · 816 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
28
29
30
31
32
33
34
35
const webpack = require('webpack')
const path = require('path')
const fs = require("fs")
module.exports = {
entry: path.resolve(__dirname, 'js/bootstrap.js'),
resolve: {
extensions: [".ts", ".tsx", ".js", ".json"]
},
module: {
rules: [
{ test: /\.tsx?$/, loader: "ts-loader" }
]
},
mode: "development",
output: {
path: path.resolve(__dirname, 'build/'),
filename: 'main.js'
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
new webpack.BannerPlugin({
banner: "// ==UserScript==\n\
// @name Majya\n\
// @namespace https://github.com/xlnx/\n\
// @version 0.1.1\n\
// @author KoishiChan\n\
// @match https://majsoul.union-game.com/0/\n\
// @grant none\n\
// ==/UserScript==\n"
})
]
}