Package Exports
- robotstxt-webpack-plugin
- robotstxt-webpack-plugin/dist/cjs.js
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
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-pluginwebpack.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 includerobots.txtfile name, example -path/to/robots.txt).General options- see generate-robotstxt options.
Related
- generate-robotstxt - api for this package.
Contribution
Feel free to push your code if you agree with publishing under the MIT license.