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

    Quasar DistDir do not be deleted in build.

    Help
    2
    2
    651
    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.
    • L
      leon last edited by

      App version : 17.20

      Early versions of quasar dont delete distDir, just ovewrite files.
      Can i use overwriting again ?
      I dont see options on conf.

      1 Reply Last reply Reply Quote 0
      • T
        turigeza last edited by turigeza

        @leon I don’t know but if you need a file or two in the dist directory you can configure webpack to copy it there. In my case I needed the file .realsync.

        extendWebpack (cfg) {
            cfg.module.rules.push({
                enforce: 'pre',
                test: /\.(js|vue)$/,
                loader: 'eslint-loader',
                exclude: /node_modules/,
                options: {
                    fix: true
                }
            });
            if (cfg.output) {
                const CopyWebpackPlugin = require('copy-webpack-plugin');
                cfg.plugins.push(
                    new CopyWebpackPlugin([{
                        from: '.realsync',
                        to: cfg.output.path
                    }
                    ])
                );
            }
        }
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post