Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Ingram committed Nov 28, 2018
1 parent 6c91791 commit 1c8c184
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,15 @@ class Test() {
````



### Usage

````bash
$ yarn add babel-plugin-console-source -D
````

.babelrc (Will append only the file name and line numbers)
````json
{
"plugins": [
"console-source"
]
}
````

.babelrc (Will append the last 2 path segments and line numbers)
````json
.babelrc
````javascript
{
"plugins": [
["console-source", {
Expand All @@ -60,4 +51,8 @@ $ yarn add babel-plugin-console-source -D
}]
]
}
````
````

### Notes

NPM Install: https://www.npmjs.com/package/babel-plugin-console-source
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-console-source",
"version": "2.0.0",
"version": "2.0.1",
"main": "index.js",
"repository": "https://github.com/peteringram0/babel-console-source",
"author": "Peter Ingram <peter.ingram0@gmail.com>",
Expand Down

0 comments on commit 1c8c184

Please sign in to comment.