diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8c11fc7
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
index 19b6eeb..1e3d4ba 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,39 @@
-**NOTICE [2016-06-26]: I'm not using or developing this lib anymore. Therefore I'm closing issues (which I cannot handle anymore), but you can send PR to improve or fix problems you facing with this lib.**
-
-# SVG Inline Loader for Webpack
-
-This Webpack loader inlines SVG as module. If you use Adobe suite or Sketch to export SVGs, you will get auto-generated, unneeded crusts. This loader removes it for you, too.
+[![npm][npm]][npm-url]
+[![deps][deps]][deps-url]
+[![test][test]][test-url]
+[![coverage][cover]][cover-url]
+[![chat][chat]][chat-url]
+
+
This Webpack loader inlines SVG as module. If you use Adobe suite or Sketch to export SVGs, you will get auto-generated, unneeded crusts. This loader removes it for you, too.
Simply add configuration object to `module.loaders` like this.
```javascript
{
test: /\.svg$/,
- loader: 'svg-inline'
+ loader: 'svg-inline-loader'
}
```
-warning: You should configure this loader only once via `module.loaders` or `require('!...')`. See [#15](https://github.com/sairion/svg-inline-loader/issues/15) for detail.
+warning: You should configure this loader only once via `module.loaders` or `require('!...')`. See [#15](https://github.com/webpack-contrib/svg-inline-loader/issues/15) for detail.
-### query options
+
Query Options
#### `removeTags: boolean`
@@ -31,6 +47,12 @@ warning: this won't work unless you specify `removeTags: true`
default: `removingTags: ['title', 'desc', 'defs', 'style']`
+#### `warnTags: [...string]`
+
+warns about tags, ex: ['desc', 'defs', 'style']
+
+default: `warnTags: []`
+
#### `removeSVGTagAttrs: boolean`
Removes `width` and `height` attributes from ``.
@@ -43,6 +65,11 @@ Removes attributes from inside the ``.
default: `removingTagAttrs: []`
+#### `warnTagAttrs: [...string]`
+
+Warns to console about attributes from inside the ``.
+
+default: `warnTagAttrs: []`
#### `classPrefix: boolean || string`
Adds a prefix to class names to avoid collision across svg files.
@@ -55,17 +82,24 @@ Adds a prefix to ids to avoid collision across svg files.
default: `idPrefix: false`
+#### `raw: boolean`
+
+Returns the content of the cleaned up SVG as a string instead of a module. Useful if you plan on passing
+the output on to file-loader, etc.
+
+default: `raw: false`
+
+
Example Usage
-##### Example Usage
```js
// Using default hashed prefix (__[hash:base64:7]__)
-var logoTwo = require('svg-inline?classPrefix!./logo_two.svg');
+var logoTwo = require('svg-inline-loader?classPrefix!./logo_two.svg');
// Using custom string
-var logoOne = require('svg-inline?classPrefix=my-prefix-!./logo_one.svg');
+var logoOne = require('svg-inline-loader?classPrefix=my-prefix-!./logo_one.svg');
// Using custom string and hash
-var logoThree = require('svg-inline?classPrefix=__prefix-[sha512:hash:hex:5]__!./logo_three.svg');
+var logoThree = require('svg-inline-loader?classPrefix=__prefix-[sha512:hash:hex:5]__!./logo_three.svg');
```
See [loader-utils](https://github.com/webpack/loader-utils#interpolatename) for hash options.
@@ -73,12 +107,54 @@ Preferred usage is via a `module.loaders`:
```js
{
test: /\.svg$/,
- loader: 'svg-inline?classPrefix'
+ loader: 'svg-inline-loader?classPrefix'
}
```
-## Notes
-
-- `` React Component is **DEPRECATED**, use `svg-inline-react` package instead.
-- Known problems:
- - currently inlining SVG in css is unable. See #22
+