Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

refactor(loader): do not throw errors in case of child context #688

Closed
wants to merge 1 commit into from

Conversation

rdy
Copy link

@rdy rdy commented Dec 21, 2017

I'm resubmitting the PR on behalf of the original contributor #390. They originally were asked to do it after #540 hit master which it has. The original contributor hasn't submitted the PR but I'd like to be using the master version of extract-text-plugin with the patch.

This basically changes the error on child context to a warning. The use case is when using extract-text-plugin with html-webpack-plugin to pull css into its own file at compilation time, same as the original #390. I've applied the same commit on master and been using it in my own fork since it hasn't been merged yet.

@jsf-clabot
Copy link

jsf-clabot commented Dec 21, 2017

CLA assistant check
All committers have signed the CLA.

'"extract-text-webpack-plugin" loader is used without the corresponding plugin, ' +
'refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example',
);
} else if (this[NS] === false) {
Copy link
Member

Choose a reason for hiding this comment

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

Why emit warning on false?

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.

Also need tests

@michael-ciniawsky michael-ciniawsky changed the title refactor: do not throw errors in case of child context refactor(loader): do not throw errors in case of child context Feb 28, 2018
Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

I'm declining this for now as it is stalled and would need to be reopen/rebased against the next branch to land. extract-text-plugin-webpack-plugin will be superseded by another solution in then near future (native CSS support (module.type), `css-webpack-plugin (WIP)) and only receives critical fixes atm

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

Successfully merging this pull request may close these issues.

4 participants