diff --git a/src/index.js b/src/index.js index 27c94e42..775f6ff2 100644 --- a/src/index.js +++ b/src/index.js @@ -124,7 +124,7 @@ class ExtractCssChunksPlugin { this.options = Object.assign( { filename: DEFAULT_FILENAME, - moduleFilename: () => options.filename || DEFAULT_FILENAME, + moduleFilename: () => this.options.filename || DEFAULT_FILENAME, }, options );