Open shatodj opened 6 years ago
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: [], }
bundle.config.js
export default { bundle: {}, copy: [], }
Output: Error in plugin 'gulp-bundle-assets' Message: Configuration file should be in the form "{ bundle: {}, copy: {} }"
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: [], }
module.exports = { bundle: {}, copy: [], }
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: [], }