Disable webpack minification for better debugging on Karma tests

This commit is contained in:
dapplion 2020-12-02 23:36:58 +00:00
parent 93499b3f34
commit 2f0db3f39f
1 changed files with 12 additions and 9 deletions

View File

@ -1,18 +1,21 @@
module.exports = {
entry: "./src/index.ts",
mode: "production",
mode: "development",
node: {
fs: "empty"
fs: "empty",
},
output: {
filename: "dist/bundle.js"
filename: "dist/bundle.js",
},
resolve: {
extensions: [".ts", ".js"]
extensions: [".ts", ".js"],
},
module: {
rules: [
{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}
]
}
};
rules: [{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}],
},
optimization: {
// Disable minification for better debugging on Karma tests
minimize: false,
},
devtool: "source-map",
};