GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kolirt/vite-plugin-robots: 🤖 Vite plugin for generating robots.txt for production and development builds

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
examples/vite-vue-ts
examples/vite-vue-ts
 
 
posters
posters
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

vite logo

Vite Robots.txt

Plugin for Vite to generating robots.txt for production and development builds.

node-current npm peer dependency version npm bundle size npm-version licence

Buy Me A Coffee

Introduction

The package allows you to customize different robots.txt for production mode and development mode.

vite build

vite build --mode=development

Installation

Use yarn or npm to install the package vite-plugin-robots.

npm install -D vite-plugin-robots

yarn add --dev vite-plugin-robots

Setup

import { robots } from 'vite-plugin-robots'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    robots({
      /* pass your config */
    })
  ]
})

Configuration robot.txt

The package copies the corresponding robots.txt according to the build mode.

.robots.[mode].txt         # only loaded in specified mode
.robots.[mode].txt.local   # only loaded in specified mode, ignored by git

Create .robots.production.txt and .robots.development.txt in the project root and the package will start using them.

License

MIT

Other packages

Check out my other projects on my GitHub profile.

About

🤖 Vite plugin for generating robots.txt for production and development builds

Topics

robotsvitevite-robots

Resources

Readme
MIT license
Activity

Stars

20 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.