mirror of https://github.com/webpack/webpack.git
added config test case for optimization.minimizer
This commit is contained in:
parent
d8ab512c34
commit
6240cf61f4
|
|
@ -0,0 +1 @@
|
|||
it("should compile", () => {})
|
||||
|
|
@ -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);
|
||||
}
|
||||
],
|
||||
},
|
||||
};
|
||||
Loading…
Reference in New Issue