robotstxt-webpack-plugin

8.0.0 • Public • Published

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.

Related

Contribution

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

Changelog

MIT

License

MIT

/robotstxt-webpack-plugin/

    Package Sidebar

    Install

    npm i robotstxt-webpack-plugin

    Weekly Downloads

    14,929

    Version

    8.0.0

    License

    MIT

    Unpacked Size

    6.88 kB

    Total Files

    5

    Last publish

    Collaborators

    • itgalaxy-owner
    • evilebottnawi
    • cap-bernardito