CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
ProdigyPNP

CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.

GitHub Repository: ProdigyPNP/ProdigyMathGameHacking
Path: blob/master/cheatGUI/webpack.config.js
Views: 713
1
const path = require("path");
2
const glob = require("glob");
3
module.exports = {
4
mode: "production",
5
entry: ["./src/index.ts", ...glob.sync(path.join(__dirname, "src/@(hacks|utils)/**/*.ts"))],
6
module: {
7
rules: [
8
{
9
test: /\.ts$/i,
10
use: ["babel-loader", "ts-loader"],
11
exclude: /node_modules/,
12
},
13
{
14
test: /\.txt$/i,
15
use: "raw-loader",
16
},
17
{
18
test: /\.s[ac]ss$/i,
19
use: [
20
"style-loader",
21
// Translates CSS into CommonJS
22
"css-loader",
23
"postcss-loader",
24
// Compiles Sass to CSS
25
"sass-loader",
26
],
27
},
28
],
29
},
30
resolve: {
31
extensions: [".ts", ".js"],
32
},
33
output: {
34
filename: "bundle.js",
35
path: path.resolve(__dirname, "dist"),
36
},
37
};
38
39