Skip to content

Commit

Permalink
fix minify flag
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 6, 2018
1 parent 569d871 commit d709133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ module.exports = async (
use: [{ loader: __dirname + "/loaders/ts-loader.js" }]
},
{
...minify ? [{
test: /\.(js|mjs)$/,
use: [{
loader: __dirname + "/loaders/terser-loader.js",
options: { sourceMap }
}]
}
}] : []
]
},
plugins: [
Expand Down

0 comments on commit d709133

Please sign in to comment.