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. poprygun
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Groups 0

    poprygun

    @poprygun

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    poprygun Follow

    Latest posts made by poprygun

    • RE: robots.txt in root?

      I realize this task by using two files robots-open.txt and robot-closed.txt and setting ENV variable.
      Ad then add WebPackPlugin into quasar.config.js as written above:

      extendWebpack(cfg) {
            const robotsMode =
              process.env.OPEN_FOR_ROBOTS === 'true' ? 'opened' : 'closed'
            console.log(`==> Robots.txt are ${robotsMode}`)
            cfg.plugins.push(
              new CopyWebpackPlugin({
                patterns: [
                  {
                    from: `robots/robots-${robotsMode}.txt`,
                    to: 'robots.txt',
                  },
                ],
              }),
            )
          },
      
      posted in Help
      P
      poprygun