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

    How to drop console statements in production build?

    Help
    4
    4
    316
    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.
    • 9
      9223000 last edited by

      Hello!

      I’m trying to find a way to remove all console.log statements from my production build.
      I added the build option to quasar.conf.js

      build: {
      uglifyOptions: {
      compress: { drop_console: true }
      },
      …
      }

      But, this does not work the “console.log” is not deleted.

      1 Reply Last reply Reply Quote 1
      • ssuess
        ssuess last edited by

        For what it is worth, I use the exact same statement as above and it definitely works for me. Console logging is there in my dev environment and stripped out from my built/production one.

        1 Reply Last reply Reply Quote 0
        • S
          skypart last edited by

          It may work!
          https://medium.com/@boyskypart/how-to-build-and-delete-all-console-in-quasar-framework-97ae324451b2

          1 Reply Last reply Reply Quote 0
          • H
            hexillion last edited by

            just my opinion from working, i feel it better to always not have console log, statement even in dev, i use them to only identify any problems.

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