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
    1. Home
    2. glittle
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 23
    • Best 3
    • Groups 0

    glittle

    @glittle

    4
    Reputation
    626
    Profile views
    23
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    glittle Follow

    Best posts made by glittle

    • RE: Serve file from root in dev server?

      Thanks, @rstoenescu.

      I’ve got my service worker going using the copy-webpack-plugin. I added this to my webpack.base.config.js:

        var CopyWebpackPlugin = require('copy-webpack-plugin')
      

      and in the list of plugins near the bottom of that file:

      new CopyWebpackPlugin([
        {
          from: 'root/'
        }
      ])
      

      Beside src folder, I have a new folder that I called root. All the files in that folder end up in the root of the dev and build outputs.

      0_1483399863729_upload-dae7615f-6998-4726-826b-0a10353fed03

      To use them, the index.html file has:

      0_1483399942713_upload-20bb8e05-7724-4599-8033-49c771561e05

      0_1483400095716_upload-e996c9e7-0f22-457c-953c-c8ea8e1b674e

      and to get OneSignal going, add their code to themain.js file

      0_1483400272997_upload-4616ca2a-807f-4811-ad70-984ca7b86bf2

      I’m actually using the OneSignal service worker along with my own. To do this, I edited both of the OneSignal files to add a reference to mine:

      0_1483400367159_upload-4d6be286-5eca-4214-8643-4397aa61a67d

      See https://documentation.onesignal.com/docs/web-push-sdk-setup-https for OneSignal information.

      posted in Help
      G
      glittle
    • RE: Data Table - row class?

      Done. See https://github.com/quasarframework/quasar/issues/464

      posted in Framework
      G
      glittle
    • RE: Add manifest.json - done

      It seems that the actual file does not need to be in the root of the site. That is a requirement for service workers, but not the manifest file.

      So this works…

      Index.html

       <link rel="manifest" href="/statics/manifest.json" />
      

      and put the manifest.json file in the “src/statics” folder.

      This doesn’t solve the problem of serving a file from the “root” for a service worker, but that’s another question…

      posted in Help
      G
      glittle

    Latest posts made by glittle

    • robots.txt in root?

      With v0.16, where do I put a robots.txt file so that it gets put into the root of the server?

      posted in Help
      G
      glittle
    • RE: Data Table - row class?

      Glad to hear that the revamp will include this!

      @lvaylet I simply rolled my own table with the rows how I needed them.

      posted in Framework
      G
      glittle
    • RE: Reduce bundle size?

      I think the build framework should do some of the optimizations found here: https://hackernoon.com/optimising-your-application-bundle-size-with-webpack-e85b00bab579

      posted in Framework
      G
      glittle
    • RE: Quasar build - file timestamps

      This is especially a problem with the “vendor.js” file. When I make a small tweak to some wording in my site, the user has to re-download this massive file, even though it did not change at all!

      posted in Framework
      G
      glittle
    • RE: Autoprefixer not working?

      I suspect now that it is working, but didn’t do the expected substitutions.

      For display: flex; it is outputting display: -webkit-box; rather than display: -webkit-flex;

      posted in Framework
      G
      glittle
    • Quasar build - file timestamps

      After running Quasar build, all the files in the “dist” folder have new timestamps on them. Is there any way to tell the builder to retain the original file’s timestamp?

      If I have a static image that doesn’t change, it should not have a new timestamp every time the project is built!

      posted in Framework
      G
      glittle
    • Autoprefixer not working?

      I needed to use Autoprefixer, since the CSS being output does not have prefixes applied. That is, “display: flex” should have “-webkit-display: flex” as well, etc.

      When I looked at ‘css-utils.js’, I see that Autoprefixer is there!

      Is there something that I need to do to activate this?

      posted in Framework
      G
      glittle
    • RE: Data Table - row class?

      Done. See https://github.com/quasarframework/quasar/issues/464

      posted in Framework
      G
      glittle
    • RE: Reduce bundle size?

      Thanks! I’ll look into that after upgrading to version 12. (As per another thread at http://forum.quasar-framework.org/topic/180/load-roboto-font-from-cdn/5)

      posted in Framework
      G
      glittle
    • RE: Load Roboto font from CDN?

      Another concern is whether changes to core files (as suggested in, for example http://forum.quasar-framework.org/topic/181/reduce-bundle-size/2) are lost when upgrading from 10 to 12. Do I need to be prepared to identify and re-apply all such changes?

      posted in Framework
      G
      glittle