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 disable filename hashing

    Useful Tips (NEW)
    2
    4
    833
    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.
    • K
      kc last edited by

      Hi, using vue cli, I could disable filename hashing by setting filenameHashing: false in vue.config.js. May I know how is this achieved in quasar? I have tried

      extendWebpack (cfg) {
      cfg.output.chunkFilename = ‘js/[name].js’
      }

      but this only removes the contenthash of some js files, while runtime.js and css files still contain the contenthash

      1 Reply Last reply Reply Quote 0
      • K
        kc last edited by

        For those interested, I found the solution to disable runtime.js caching too:

        extendWebpack (cfg) {
        cfg.output.filename = ‘js/[name].js’
        cfg.output.chunkFilename = ‘js/[name].js’
        }

        now left with CSS caching, still struggling. Any pointer?

        1 Reply Last reply Reply Quote 0
        • K
          kc last edited by

          OK, here’s the complete solution for those who may be interested:

            chainWebpack (chain, { isServer, isClient }) {
              chain
                .output
                .filename('js/[name].js')
                .chunkFilename('js/[name].js')
              chain
                .plugin('mini-css-extract')
                .tap(args => [{ filename: 'css/[name].css' }, ...args]);
            },
          metalsadman 1 Reply Last reply Reply Quote 1
          • metalsadman
            metalsadman @kc last edited by

            @kc thanks, moving thread to tips.

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