From 392461d253ddc9a5a2adb22a52723111e67ee548 Mon Sep 17 00:00:00 2001 From: Jomar Milan Date: Tue, 5 Sep 2023 21:30:26 -0700 Subject: Initial commit --- webpack.config.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..ca25b27 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,39 @@ +const path = require("path"); + +module.exports = { + target: "node", + entry: "src/index.ts", + devtool: "source-map", + context: __dirname, + mode: "development", + output: { + path: path.resolve(__dirname, "dist"), + filename: "index.js", + pathinfo: true, + libraryTarget: "umd" + }, + resolve: { + modules: [".", "src", "node_modules"].map(x => path.join(__dirname, x)), + extensions: [ ".js", ".ts" ] + }, + module: { + rules: [ + { + test: /\.ts$/, + loader: "ts-loader", + options: { + configFile: path.resolve(__dirname, "tsconfig.json") + } + }, + { + test: /\.scss/, + use: [ "style-loader", "css-loader", "sass-lodaer" ] + }, + { + test: /\.pug$/, + use: [ "apply-loader", "pug-loader" ] + } + ] + }, + externals: [ "fs", "ngx-toastr", /^rxjs/, /^@angular/, /^@ng-bootstrap/, /^tabby-/ ] +}; -- cgit v1.3.1