alex-oleshkevich / vue-introjs

intro.js bindings for Vue.
MIT License
301 stars 53 forks source link

UglifyJS issues #14

Closed robsonsobral closed 6 years ago

robsonsobral commented 6 years ago

Hi!

I got stuck into issues when trying to minify VueIntroJs. My solution was to point to the dist file, instead of the package.json main value, "src/index.js":

    resolve: {
        alias: {
            'vue-introjs': 'vue-introjs/dist/index.min.js',

Thank you!

alex-oleshkevich commented 6 years ago

UglifyJS does not work with ES6 syntax. Your workarond is generally ok

robsonsobral commented 6 years ago

Thank you, @alex-oleshkevich . Please, consider to add this info to the readme.

Thank you! Have a nice day!