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