Disable webpack minification for better debugging on Karma tests
This commit is contained in:
parent
93499b3f34
commit
2f0db3f39f
|
@ -1,18 +1,21 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: "./src/index.ts",
|
entry: "./src/index.ts",
|
||||||
mode: "production",
|
mode: "development",
|
||||||
node: {
|
node: {
|
||||||
fs: "empty"
|
fs: "empty",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: "dist/bundle.js"
|
filename: "dist/bundle.js",
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".ts", ".js"]
|
extensions: [".ts", ".js"],
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}],
|
||||||
{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}
|
},
|
||||||
]
|
optimization: {
|
||||||
}
|
// Disable minification for better debugging on Karma tests
|
||||||
|
minimize: false,
|
||||||
|
},
|
||||||
|
devtool: "source-map",
|
||||||
};
|
};
|
Reference in New Issue