Skip to content

Extend contentBase to support array with multiple sources. #374

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

Merged
merged 1 commit into from
Jan 20, 2016

Conversation

BerndWessels
Copy link
Contributor

Hello

This is a small but important PR that will allow us to have multiple sources as content base.

It opens a raft of development build features and solves masses of messy workarounds to achieve the same thing.

One typical example on how it would be used in a webpack.config is:

var WHITELABEL = 'visa';
config.devServer = {
  contentBase: ['./public/common', './public/' + WHITELABEL]
}

In this example we are now able to separate common and whitelabel specific assets, externals and sources cleanly in different folders - rather than having copies of all common files in each whitelabel folder.

sokra added a commit that referenced this pull request Jan 20, 2016
Extend contentBase to support array with multiple sources.
@sokra sokra merged commit 4d18f58 into webpack:master Jan 20, 2016
@sokra
Copy link
Member

sokra commented Jan 20, 2016

Thanks

sokra added a commit that referenced this pull request Jan 20, 2016
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