Skip to content

Commit 286787a

Browse files
committed
Minor text changes
1 parent f72614b commit 286787a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,7 @@ const publicApi = {
615615
},
616616

617617
/**
618-
* If enabled, the output directory is emptied between
619-
* each build (to remove old files).
618+
* If enabled, the output directory is emptied between each build (to remove old files).
620619
*
621620
* A list of available options can be found at https://github.com/johnagan/clean-webpack-plugin
622621
*

lib/WebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class WebpackConfig {
373373

374374
cleanupOutputBeforeBuild(paths = ['**/*'], cleanWebpackPluginOptionsCallback = () => {}) {
375375
if (!Array.isArray(paths)) {
376-
throw new Error('Argument 1 to cleanupOutputBeforeBuild() must be an Array');
376+
throw new Error('Argument 1 to cleanupOutputBeforeBuild() must be an Array of paths - e.g. [\'**/*\']');
377377
}
378378

379379
if (typeof cleanWebpackPluginOptionsCallback !== 'function') {

test/WebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ describe('WebpackConfig object', () => {
187187

188188
expect(() => {
189189
config.cleanupOutputBeforeBuild('foo', () => {});
190-
}).to.throw('Argument 1 to cleanupOutputBeforeBuild() must be an Array');
190+
}).to.throw('Argument 1 to cleanupOutputBeforeBuild() must be an Array of paths');
191191
});
192192

193193
it('Setting invalid callback argument', () => {

0 commit comments

Comments
 (0)