No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    fix uglifyjs problem

    CLI
    2
    4
    2466
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      remy last edited by

      Hello,
      I’m using quasar-cli with the quasar-framewwork 0.13.4
      There is a little problem when I launch the command “quasar dev”.
      An error message appears:

      X:\path\to\quasar-app\node_modules\uglifyjs\index.js:1
      (function (exports, require, module, __filename, __dirname) { throw "uglifyjs is deprecated - use uglify-js instead.";
                                                                    ^
      uglifyjs is deprecated - use uglify-js instead.
      

      Looking for a bit, I discovered that it comes from the purify-css librarie.
      It using "uglifyjs": "^2.4.10"

      To fix this i have just rewriting in ./node_modules/purify-css/src/utils/FileUtil.js
      and replace this line…

      var UglifyJS = require('uglifyjs');
      

      …with this one

      var UglifyJS = require('uglify-js');
      

      hope that this could help some in the same case and sorry for my basic english (i’m french)

      🙂

      LaurentPayot 1 Reply Last reply Reply Quote 0
      • LaurentPayot
        LaurentPayot @remy last edited by LaurentPayot

        Salut @remy

        The issue was reported to purify-css maintainer and it was fixed. Simply modify your quasar template following the changes in this commit and update your packages. It works for me 🙂

        Laurent

        R 1 Reply Last reply Reply Quote 0
        • R
          remy last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • R
            remy @LaurentPayot last edited by

            @LaurentPayot Great !
            Thank you 😁

            1 Reply Last reply Reply Quote 1
            • First post
              Last post