-
Notifications
You must be signed in to change notification settings - Fork 211
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
Minimize issue #25
Comments
As a temporary solution I just removed the utli import in the Icon.vue file and removed the "warn" on line 82 (I am using current version) |
That's probably your file is not transpiled into ES5 before you minimize it. Did you follow the instructions in readme? |
Thank you for your fast response. |
this babel config worked for me
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run webpack build with Uglifyjs plugin or --optimize-minimize it gives me following error
ERROR in build.js from UglifyJs
SyntaxError: Unexpected token: name (warn) [./~/vue-awesome/util.js:3,0][build.js:...
When I run the build withput minification or dev Its working great.
I am importing the Icon in my components, I also tried the global import, still not working I tried ES5 and ES6
I am now importing like:
require('vue-awesome/icons/search');
require('vue-awesome/icons/times');
var Icon = require('vue-awesome/components/Icon.vue');
And then I define in module.exports
It is working but only in dev builds, Am I missing something?
The text was updated successfully, but these errors were encountered: