File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed
Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1+ # 1.0.0
2+
3+ - Documentation: improve ` README.md ` .
4+
15# 1.0.0-alpha.1 - 2016-11-11
26
37- Chore: initial public release.
Original file line number Diff line number Diff line change @@ -17,13 +17,35 @@ npm install --save-dev robotstxt-webpack-plugin
1717## Usage
1818
1919``` js
20- // Comming soon
20+ const RobotstxtPlugin = require (' robotstxt-webpack-plugin' ).default ;
21+
22+ const options = {}; // see options below
23+
24+ module .exports = {
25+ plugins: [
26+ new RobotstxtPlugin (options)
27+ ]
28+ }
29+ ```
30+
31+ Or
32+
33+ ``` js
34+ import RobotstxtPlugin from ' robotstxt-webpack-plugin' ;
35+
36+ const options = {}; // see options below
37+
38+ export default {
39+ plugins: [
40+ new RobotstxtPlugin (options)
41+ ]
42+ };
2143```
2244
2345## Options
2446
2547- ` General options ` - see [ generate-robotstxt] ( https://github.com/itgalaxy/generate-robotstxt ) options.
26- - ` dest ` - (optional) directory which will be saved robots.txt (relative ).
48+ - ` dest ` - (optional) directory which will be saved robots.txt (relatively of the option ` output.path ` value ).
2749
2850## Related
2951
Original file line number Diff line number Diff line change 11{
22 "name" : " robotstxt-webpack-plugin" ,
3- "version" : " 1.0.0-alpha.1 " ,
3+ "version" : " 1.0.0" ,
44 "description" : " A webpack plugin to output a robots.txt file" ,
55 "license" : " MIT" ,
66 "author" :
" itgalaxy <[email protected] >" ,
You can’t perform that action at this time.
0 commit comments