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

Build failure with NODE_ENV=production #9

Closed
GreenGremlin opened this issue Nov 16, 2015 · 3 comments
Closed

Build failure with NODE_ENV=production #9

GreenGremlin opened this issue Nov 16, 2015 · 3 comments

Comments

@GreenGremlin
Copy link

When building with process.env.NODE_ENV=production, I'm getting an "undefined is not a function" error.

 48% 166/260 build modules{ [Error: TypeError: undefined is not a function
    at ModernizrPlugin.minifySource (.../node_modules/modernizr-webpack-plugin/index.js:58:30)
] originalError: [TypeError: undefined is not a function] }

The error is occurring on the Object.assign in the ModernizrPlugin.prototype.minifySource call.

@GreenGremlin
Copy link
Author

Building with ModernizrWebpackPlugin option minify: false works, but I'd rather not do that.

@GreenGremlin
Copy link
Author

Renaming webpack.config.js > webpack.config.babel.js fixed this.

@alexpalombaro
Copy link
Owner

@GreenGremlin I've updated the plugin to no longer require transpiling with babel or Node > 4
Thanks for lodging the issue 👍

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

2 participants