Trivial simplifications to webpack.config.js.

This commit is contained in:
David Anson 2021-11-09 22:11:35 -08:00
parent f3f8d635d5
commit a17ac59aef

View file

@ -2,7 +2,6 @@
"use strict"; "use strict";
const path = require("path");
const webpack = require("webpack"); const webpack = require("webpack");
function config(options) { function config(options) {
@ -23,7 +22,7 @@ function config(options) {
{ {
"loader": "ts-loader", "loader": "ts-loader",
"options": { "options": {
"configFile": path.resolve(__dirname, "tsconfig.json") "configFile": "../demo/tsconfig.json"
} }
} }
] ]
@ -39,9 +38,6 @@ function config(options) {
"plugins": [ "plugins": [
new webpack.BannerPlugin({ new webpack.BannerPlugin({
"banner": `${name} ${version} ${homepage} @license ${license}` "banner": `${name} ${version} ${homepage} @license ${license}`
}),
new webpack.DefinePlugin({
"process.env.NODE_DEBUG": false
}) })
], ],
"resolve": { "resolve": {