Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(options): enable using plugin without defining options #393

Merged
merged 1 commit into from
May 10, 2019

Conversation

kevinchappell
Copy link
Contributor

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Developers using MiniCssExtractPlugin without options will receive an error "cannot read property filename of undefined". This PR fixes that error and enables instantiating MiniCssExtractPlugin without options ie.

plugins: [
  new MiniCssExtractPlugin(),
],

Breaking Changes

none

Additional Info

fixes cannot read property of filename of undefined when instantiated with no options
@codecov
Copy link

codecov bot commented May 10, 2019

Codecov Report

Merging #393 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #393   +/-   ##
=======================================
  Coverage   65.19%   65.19%           
=======================================
  Files           4        4           
  Lines         408      408           
  Branches       83       84    +1     
=======================================
  Hits          266      266           
  Misses        118      118           
  Partials       24       24
Impacted Files Coverage Δ
src/index.js 87.96% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13e9cbf...feffe70. Read the comment docs.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants