8000 added config test case for optimization.minimizer · tyroprogrammer/webpack@6240cf6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6240cf6

Browse files
author
Steven Hargrove
committed
added config test case for optimization.minimizer
1 parent d8ab512 commit 6240cf6
Copy full SHA for 6240cf6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
it("should compile", () => {})
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const Compiler = require('../../../../lib/Compiler');
2+
3+
module.exports = {
4+
optimization: {
5+
minimize: true,
6+
minimizer: [
7+
{
8+
apply(compiler) {
9+
expect(compiler).toBeInstanceOf(Compiler);
10+
},
11+
},
12+
function(compiler) {
13+
expect(compiler).toBe(this);
14+
expect(compiler).toBeInstanceOf(Compiler);
15+
}
16+
],
17+
},
18+
};

0 commit comments

Comments
 (0)
0