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

    v0.15: custom webpack config

    Starter Kits
    2
    3
    2454
    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.
    • LaurentPayot
      LaurentPayot last edited by LaurentPayot

      Back from some backend dev, I decided to give v0.15 beta a try.

      First I was pleased by the new super-easy configuration system.
      I use Pug and I need to transpile to javascript too, so I started to look how add loaders to the webpack config.
      Then I realized that v0.15 webpack config is not in the app directory but is part of the quasar-cli global module (
      /usr/local/lib/node_modules/quasar-cli/lib/build/webpack-config.js on my Ubuntu machine), so even if I modify it it will be overwritten at the next quasar-cli update.

      Am I missing something or (except for mode, theme and target) does v0.15 make impossible to tweak webpack??? 😱

      1 Reply Last reply Reply Quote 1
      • L
        leopiccionia last edited by

        1. I think vue-loader works out of the box with Pug if you have pug-loader installed as (dev) dependency, so you don’t need to change Webpack configs for it.

        2. Webpack-related configurations are now handled in quasar.conf.js file. I’m not sure about the format, as the docs are still WIP, but I’d try to play with extendWebpack option.

        LaurentPayot 1 Reply Last reply Reply Quote 3
        • LaurentPayot
          LaurentPayot @leopiccionia last edited by

          @leopiccionia thank you so much.

          1. you’re right for Pug, I forgot it was automatic
          2. Great! Right now I’m customizing the build.extendWebpack function of quasar.conf.js to add loaders to my Vue single component files. I guess the documentation will talk about that.

          I’m feeling better now…

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