Skip to content

Commit fb6ae7a

Browse files
author
Alexander Krasnoyarov
committed
Chore: prepare 1.0.0 release.
1 parent 2a8b1fc commit fb6ae7a

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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.

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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]>",

0 commit comments

Comments
 (0)