PygmySlowLoris/vue-ripple-directive

Problems when running webpack build

indreklasn opened this issue · 6 comments

I'm trying to build the app for production but for some reason your package gives me a error.

I'm more than happy to give more information, please guide me in a direction that will be helpful for you!

Versions:

"vue-ripple-directive": "^1.0.6",
"webpack": "2.5.1"


europark-frontend production ✗ rm -rf dist && yarn run build
yarn run v0.24.6
$ node build/build.js
⠋ building for production...
Starting to optimize CSS...
Processing static/css/app.f7d5306f8b04bdc608049efcac9dd29c.css...
Processed static/css/app.f7d5306f8b04bdc608049efcac9dd29c.css, before: 504563, after: 394375, ratio: 78.16%
Hash: 0887ff77de5d9fc277cd
Version: webpack 2.5.1
Time: 36969ms
                                                  Asset       Size  Chunks                    Chunk Names
                  static/js/app.3db6395a74947c65052a.js     248 kB       1  [emitted]         app
      static/fonts/proximanova-bold-webfont.46f27ca.eot    35.3 kB          [emitted]
                        static/img/europark.528996f.svg    10.2 kB          [emitted]
        static/img/proximanova-bold-webfont.8493f2e.svg     152 kB          [emitted]
         static/img/proximanova-reg-webfont.f49e643.svg     155 kB          [emitted]
     static/fonts/proximanova-bold-webfont.c78986c.woff    42.9 kB          [emitted]
    static/fonts/proximanova-bold-webfont.7a91386.woff2      31 kB          [emitted]
      static/fonts/proximanova-reg-webfont.5cc13c4.woff    42.7 kB          [emitted]
     static/fonts/proximanova-reg-webfont.4f5fab3.woff2    30.9 kB          [emitted]
                         static/img/ep-logo.4e17dea.svg    14.1 kB          [emitted]
                 static/img/e-parkimiskaart.37cdb56.png    39.2 kB          [emitted]
               static/js/vendor.a105e189e5b213bcc29b.js    2.15 MB       0  [emitted]  [big]  vendor
       static/fonts/proximanova-reg-webfont.1989ad6.eot    35.1 kB          [emitted]
             static/js/manifest.b23ad38eac3fac1ec691.js     1.5 kB       2  [emitted]         manifest
    static/css/app.f7d5306f8b04bdc608049efcac9dd29c.css     394 kB       1  [emitted]  [big]  app
           static/js/vendor.a105e189e5b213bcc29b.js.map    2.71 MB       0  [emitted]         vendor
              static/js/app.3db6395a74947c65052a.js.map    1.38 MB       1  [emitted]         app
static/css/app.f7d5306f8b04bdc608049efcac9dd29c.css.map     593 kB       1  [emitted]         app
         static/js/manifest.b23ad38eac3fac1ec691.js.map    14.4 kB       2  [emitted]         manifest
               static/js/app.3db6395a74947c65052a.js.gz    46.6 kB          [emitted]
 static/css/app.f7d5306f8b04bdc608049efcac9dd29c.css.gz    60.1 kB          [emitted]
            static/js/vendor.a105e189e5b213bcc29b.js.gz     494 kB          [emitted]  [big]
                                             index.html  503 bytes          [emitted]
                                     static/favicon.ico    15.1 kB          [emitted]
                                      static/avatar.jpg    7.09 kB          [emitted]

ERROR in static/js/vendor.a105e189e5b213bcc29b.js from UglifyJs
Unexpected token: punc (() [./~/vue-ripple-directive/src/ripple.js:3,0][static/js/vendor.a105e189e5b213bcc29b.js:67018,9]

  Build complete.

  Tip: built files are meant to be served over an HTTP server.
  Opening index.html over file:// won't work.

✨  Done in 38.39s.

Hi @wesharehoodies ,

That happens because uglify-js only supports ECMAScript 5.

Since it's still used for many people, I'm happy to inform you that we've just updated the package to make it work with uglify-js.

Please, update your directive via npm to get the latest version (v1.0.7).

Regards :)

Hi @wesharehoodies ,
Did you have time to check that?

Hi @Edujugon,

I will check it asap, currently on a conference run. Thanks for your effort! :)

Hi @wesharehoodies ,

Still facing same issue?
I was able to replicate the same issue and with the last version it was resolved..

@Edujugon

Hi, sorry for that (phone went off in pocket) -- yes it's fixed. Thanks for your hard work and effort. >:)

Awesome idea + implementation by the way, love its simplicity.

@wesharehoodies Thanks for your kind words. We appreciate it.