Skip to content

Commit

Permalink
added config test case for optimization.minimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Hargrove committed Dec 29, 2018
1 parent d8ab512 commit 6240cf6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/configCases/optimization/minimizer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
it("should compile", () => {})
18 changes: 18 additions & 0 deletions test/configCases/optimization/minimizer/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const Compiler = require('../../../../lib/Compiler');

module.exports = {
optimization: {
minimize: true,
minimizer: [
{
apply(compiler) {
expect(compiler).toBeInstanceOf(Compiler);
},
},
function(compiler) {
expect(compiler).toBe(this);
expect(compiler).toBeInstanceOf(Compiler);
}
],
},
};

0 comments on commit 6240cf6

Please sign in to comment.