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

ES6 support for bundle.config #112

Open
shatodj opened this issue Jun 20, 2018 · 0 comments
Open

ES6 support for bundle.config #112

shatodj opened this issue Jun 20, 2018 · 0 comments

Comments

@shatodj
Copy link

shatodj commented Jun 20, 2018

It would be great to have a bundle configuration export in ES6 style. it looks like it's required to use CommonJS style only

This snipped in bundle.config.js doesn't work:
export default { bundle: {}, copy: [], }

Output:
Error in plugin 'gulp-bundle-assets' Message: Configuration file should be in the form "{ bundle: {}, copy: {} }"

You have to do this:
module.exports = { bundle: {}, copy: [], }

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

No branches or pull requests

1 participant