JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13099
  • Score
    100M100P100Q147850F
  • License MIT

A webpack plugin to output a robots.txt file

Package Exports

  • robotstxt-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (robotstxt-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

robotstxt-webpack-plugin

NPM version Travis Build Status dependencies Status devDependencies Status Greenkeeper badge

Webpack plugin for generate-robotstxt package. Generating robots.txt using webpack. Why your need robots.txt?

Install

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

Usage

const RobotstxtPlugin = require('robotstxt-webpack-plugin').default;

const options = {}; // see options below

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

Or

import RobotstxtPlugin from 'robotstxt-webpack-plugin';

const options = {}; // see options below

export default {
  plugins: [
    new RobotstxtPlugin(options)
  ]
};

Options

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

Contribution

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

Changelog

License