jonschlinkert / dashify

Convert a string to a dash-separated string (kebab case). Works with camelcase, pascalcase, space-separated, etc.
MIT License
88 stars 15 forks source link

[Bug] Fails to minify on npm build #8

Closed kevin-lindsay-1 closed 6 years ago

kevin-lindsay-1 commented 6 years ago

Using node v8.2.1 and npm 5.3.0

Error message:

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

        ./node_modules/dashify/index.js:17
doowb commented 6 years ago

This library doesn't do any minifying. You probably need to configure your build system to do something differently. The error is pointing to line 17 which has es6 syntax, so the minifier you're using needs to support es6 syntax or at least have a plugin that supports it.