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

    SSR, PWA, Webpack, and language choice

    CLI
    2
    6
    694
    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.
    • D
      dboune last edited by

      Hi all… I’m currently implementing SSR+PWA in a new application using Quasar/app 1.0.0-beta.9.

      I’ve set myself to use TypeScript for the SPA and SSR app portions of the application (that was wonderfully easy to do!), and would like to be able to do the same for the SSR server portion of the application (ssr-src/index.js and ssr-src/extension.js), or for the PWA (only custom-service-worker.js).

      As far as I can tell this isn’t currently possible for a few reasons, including some hardcoded file names, at least one external resource that is pulled in (../ssr), and that the Webpack configuration for the server side is focused on the app, using only a copy for the SSR portion . I can massage the configuration via extendWebpack and end up with a functional build, but there are additional issues that can’t be resolved in this manner.

      For PWA this can be considered a Workbox issue, but it also could be considered a Quasar issue in that there is, as far as I can tell, no way to use multiple Webpack configs. This may or may not be at least partly resolved in a future version of workbox-webpack-plugin… https://github.com/GoogleChrome/workbox/pull/1765#issuecomment-445874743

      I can do as I have done in the past to enable TypeScript for regular SPA apps, rolling my own build, but of course this precludes the use of the Quasar CLI tool, at least for this aspect of development.

      Is accommodating for this something that is already on the radar for a future version? Or is it worth putting in a feature request for?

      1 Reply Last reply Reply Quote 0
      • nothingismagick
        nothingismagick last edited by

        Hi -we are currently working on a typescript app extension. You are welcome to test-drive it - and leave your comments at the repo issues:

        https://github.com/quasarframework/app-extension-typescript

        D 1 Reply Last reply Reply Quote 1
        • D
          dboune @nothingismagick last edited by

          @nothingismagick That’s wonderful, and certainly simplifies the task of adding TypeScript support to a project. I will be happy to use your extension, which already appears quite complete! Nicely done.

          However, it does not solve the use of typescript (or another language) for SSR and PWA. This is something the Quasar CLI project, at least in part, will have to provide support for.

          1 Reply Last reply Reply Quote 0
          • nothingismagick
            nothingismagick last edited by

            we’re working on it. should work soon

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

              This is one step on the way:
              https://github.com/quasarframework/quasar/pull/3502

              1 Reply Last reply Reply Quote 1
              • D
                dboune last edited by

                Excellent! And merged even… nicely done.

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