浏览代码

v2.1.0

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 5 年之前
父节点
当前提交
d9696c1e59
共有 2 个文件被更改,包括 10 次插入9 次删除
  1. 9 8
      README.md
  2. 1 1
      package.json

+ 9 - 8
README.md

@@ -4,7 +4,7 @@
 
 ## Installation
 
-`npm install --save  --production toasters`
+`npm install --save --production toasters`
 
 ## Usage
 
@@ -12,9 +12,9 @@
 
 ```html
 <div id="toasts-container" class="position-right position-bottom">
-	<div id="toasts-content">
-		<!-- toasts will be added or removed from here -->
-	</div>
+  <div id="toasts-content">
+    <!-- toasts will be added or removed from here -->
+  </div>
 </div>
 ```
 
@@ -24,8 +24,8 @@
 import Toast from "toasters";
 
 new Toast({
-	content: "Hello World",
-	persistant: true
+  content: "Hello World",
+  persistant: true
 });
 ```
 
@@ -34,6 +34,7 @@ new Toast({
 ![preview of visible toast on webpage](https://i.imgur.com/7kIH6Oi.png)
 
 ## Potential future additions
+
 - Design improvements
 - Error handling (i.e. you haven't provided any content for the toast)
 - Ability to parse markdown or html
@@ -43,7 +44,7 @@ new Toast({
 
 ## Contributing
 
-``` bash
+```bash
 # install dependencies
 npm install
 
@@ -52,4 +53,4 @@ npm run dev
 
 # build for production with minification
 npm run build
-```
+```

+ 1 - 1
package.json

@@ -25,5 +25,5 @@
     "build": "webpack --mode=production --progress --hide-modules",
     "dev": "webpack --mode=development --watch"
   },
-  "version": "2.0.1"
+  "version": "2.1.0"
 }