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

Webpack.browser.js #2

Open
zouhir opened this issue Mar 23, 2017 · 1 comment
Open

Webpack.browser.js #2

zouhir opened this issue Mar 23, 2017 · 1 comment
Assignees

Comments

@zouhir
Copy link
Collaborator

zouhir commented Mar 23, 2017

very minor thing

I needed multiple webpack for multiple env \ browsers. so instead of multiple config files my webpack configs is a function that returns an Object config.

const packer = (browserVendor, versionSupported, env?, ..) => {
  return {
    ...
  }
}

Potential benefits:

  • reduced browser specific files.
  • reduced npm scripts
  • read all browser from array of objects.

would love to know your thoughts about this.

@kristoferbaxter
Copy link
Owner

That's an awesome idea. I'll give it a go.

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

No branches or pull requests

2 participants