forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.cjs
More file actions
46 lines (44 loc) · 1.14 KB
/
webpack.config.cjs
File metadata and controls
46 lines (44 loc) · 1.14 KB
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
'use strict';
const path = require('path');
module.exports = {
entry: {
config: './ui/config/config.js',
rdmty: './ui/dps/rdmty/dps.js',
xephero: './ui/dps/xephero/xephero.js',
eureka: './ui/eureka/eureka.js',
fisher: './ui/fisher/fisher.js',
jobs: './ui/jobs/jobs.js',
oopsyraidsy: './ui/oopsyraidsy/oopsyraidsy.js',
pullcounter: './ui/pullcounter/pullcounter.js',
radar: './ui/radar/radar.js',
raidboss: './ui/raidboss/raidboss.js',
raidemulator: './ui/raidboss/raidemulator.js',
test: './ui/test/test.js',
},
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
},
devServer: { writeToDisk: true },
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /data[\\\/]manifest\.txt$/,
use: [
{
loader: './webpack/loaders/manifest-loader.cjs',
},
],
},
{
test: /data[\\\/](?!manifest\.txt).*\.txt$/,
// TODO: we could also strip comments and blank lines from timelines
use: ['raw-loader'],
},
],
},
};