1.0.5 • Published 1 year ago

vite-plugin-robots v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago