🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

robotstxt-webpack-plugin

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robotstxt-webpack-plugin

A webpack plugin to output a robots.txt file

8.0.0
latest
Source
npm
Version published
Weekly downloads
14K
-7.78%
Maintainers
3
Weekly downloads
 
Created
Source

NPM version Travis Build Status dependencies Status devDependencies Status

robotstxt-webpack-plugin

Generating robots.txt using webpack.

Why your need robots.txt?

Webpack plugin for generate-robotstxt package.

Getting Started

To begin, you'll need to install robotstxt-webpack-plugin:

npm install --save-dev robotstxt-webpack-plugin

webpack.config.js

const RobotstxtPlugin = require("robotstxt-webpack-plugin");

const options = {}; // see options below

module.exports = {
  plugins: [new RobotstxtPlugin(options)],
};

Options

  • filePath - (optional) path for robots.txt (should be contain full path include robots.txt file name, example - path/to/robots.txt).
  • General options - see generate-robotstxt options.

Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog

MIT

License

MIT

Keywords

robots.txt

FAQs

Package last updated on 29 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts