We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2c1a7 commit 4094a73Copy full SHA for 4094a73
test/WebpackConfig.js
@@ -306,7 +306,19 @@ describe('WebpackConfig object', () => {
306
expect(config.useVueLoader).to.be.true;
307
expect(config.vueOptions.extractCSS).to.be.true;
308
});
309
+ });
310
+
311
+ describe('addPlugin', () => {
312
+ it('extends the current registered plugins', () => {
313
+ const config = createConfig();
314
+ const nbOfPlugins = config.plugins.length;
315
316
+ expect(nbOfPlugins).to.equal(0);
317
318
+ config.addPlugin(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
319
320
+ expect(config.plugins.length).to.equal(1);
321
322
323
324
describe('addLoader', () => {
0 commit comments