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

    [v1] Change compilation output file "app.js" name

    Framework
    2
    12
    633
    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.
    • C
      caragon last edited by caragon

      I would like to have some field in quasar.conf.js to be able to change the output name of the app.js filename.
      It would be good to have app[hash].js in order to ensure no chached sources are being used.

      Is there a way to solve this with v1.0.0-beta.17?

      Thanks in advance

      1 Reply Last reply Reply Quote 1
      • s.molinari
        s.molinari last edited by s.molinari

        When you use the build system, the files are hashed automatically.

        19485b24-2219-41c4-9c54-50956a05ecf9-image.png

        Scott

        1 Reply Last reply Reply Quote 1
        • C
          caragon last edited by

          that was the output I got with quasar-cli@0.15.3.
          51.7f6e7b398d609ba2513d.js
          76.b7cbe0a412966edfeb6f.js
          app.36eb4cbdd88b4b84cf4b.js

          But with the latest version (@quasar/app v1.0.0-beta.18, Pkg quasar v1.0.0-beta.16) this is the compilation result:
          547700ba.js
          6ddd245e.js
          app.js

          (I’m using using cordova compilation mode)

          1 Reply Last reply Reply Quote 0
          • C
            caragon last edited by

            Just upgraded to quasar v1.0.0-beta.23 and compiled js files does not have hash when compiling.

            Why did it disappeared?

            1 Reply Last reply Reply Quote 0
            • s.molinari
              s.molinari last edited by s.molinari

              I just ran the build for SPA and this is what I got.

              51ff6db0-3256-4e38-81b2-a159709bc57d-image.png

              Scott

              1 Reply Last reply Reply Quote 0
              • C
                caragon last edited by

                Maybe I didn’t exlained myself correctly…
                I’m not trying to create a SPA I’m trying to compile the app using cordova for browser, android and ios.
                The command I need to execute is quasar build -m cordova -T browser.

                On quasar-cli@0.15.3 the app.js file located on src-cordova/platforms/browser/www/js contained had a hashed suffix.
                Now, with:

                Build mode........ cordova
                Pkg quasar........ v1.0.0-rc.4
                Pkg @quasar/app... v1.0.0-rc.6
                

                the resulting file name is app.js.

                1 Reply Last reply Reply Quote 0
                • s.molinari
                  s.molinari last edited by

                  Sorry, in v1.0 there is no “browser” option for Cordova builds. There is only “android” and “ios”.

                  https://quasar.dev/quasar-cli/cli-documentation/build-commands#Development

                  # Mobile App
                  $ quasar dev -m cordova -T [android|ios]
                  

                  Scott

                  1 Reply Last reply Reply Quote 0
                  • C
                    caragon last edited by

                    Ok, :sad_face:
                    Thanks for the fast response, though!

                    1 Reply Last reply Reply Quote 0
                    • s.molinari
                      s.molinari last edited by

                      I’m not sure what you are trying to accomplish either. What is a cordova browser app? Is there such a thing? Can you explain?

                      Scott

                      1 Reply Last reply Reply Quote 0
                      • C
                        caragon last edited by caragon

                        I’m using Quasar Framework to create webpages and apps with the exactly same code.
                        To accomplish that we use cordova to compile for web and app. This way we can use the same cordova plugins for web, android and ios, and we don’t have to change our code.
                        Of course there are some plugins that can’t work on browser as QRScanner… but there are other as NativeStorage (localStorage on web) that works for all platforms.

                        This features of cordova combined with Quasar Components was what made me choose Quasar as the developing framework.

                        If you could add it again, would be amazing! I would really appreciate that :smile_face:

                        1 Reply Last reply Reply Quote 0
                        • C
                          caragon last edited by

                          I’ve started this issue cause I’m having problems with caching due to no hash on compiled bundles.
                          The compilation works and the websites is rendered correctly.

                          Is there any work around to add a hash when compiling? (Not disabling the entire cache)

                          1 Reply Last reply Reply Quote 0
                          • s.molinari
                            s.molinari last edited by

                            Someone with more Cordova experience will need to jump in. Sorry I can’t help further.

                            Scott

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