{"library":"robotstxt-webpack-plugin","title":"robotstxt-webpack-plugin","description":"A webpack plugin to generate a robots.txt file for your project. Version 8.0.0 is current, released August 2022. It requires webpack 5+ and Node.js >=14.15.0. Built on top of generate-robotstxt, it supports all options from that package. Simplified setup compared to manual creation, integrates with webpack's asset pipeline. Last update was 2022; no recent activity, but still functional for webpack 5 projects.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install robotstxt-webpack-plugin"],"cli":null},"imports":["const RobotstxtPlugin = require('robotstxt-webpack-plugin');","import RobotstxtPlugin from 'robotstxt-webpack-plugin';","const { default: RobotstxtPlugin } = require('robotstxt-webpack-plugin');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const RobotstxtPlugin = require('robotstxt-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n    new RobotstxtPlugin({\n      // Generates a robots.txt that disallows all\n      userAgent: '*',\n      disallow: '/',\n    }),\n  ],\n};","lang":"javascript","description":"Configures webpack to output a robots.txt disallowing all crawlers.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}