Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ooade committed Aug 21, 2018
1 parent 2ef12fb commit 926e3a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# All distribution and node_modules shouldn't be tracked
dist
node_modules

.cache
.vscode
8 changes: 4 additions & 4 deletions docs/basics.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Importing Non-React Packages in V1.0.0 Below
## Importing Non-React Packages in V1.1.2 Below

The Old version of Pimg could not grab the package from the root path. So, one would have to `import from /dist/[vue|preact]/` but that has been added to the latest version.
The Old version of Pimg does not grab the package from the root path. So, one would have to `import from /dist/[vue|preact]/` but that has been added to the latest version.

## React

Expand All @@ -13,7 +13,7 @@ render(<Image src="someURL" />, document.querySelector('.root'))
## Preact

```jsx
import Image from 'pimg/preact' //v1.1.0
import Image from 'pimg/preact' //v1.1.2+

render(<Image src="someURL" />, document.querySelector('.root'))
```
Expand Down Expand Up @@ -45,7 +45,7 @@ render(<Image src="someURL" />, document.querySelector('.root'))
// index.vue, maybe?
//------------------
import Vue from 'vue'
import pimg from 'pimg/vue' //v1.1.0
import pimg from 'pimg/vue' //v1.1.2+

Vue.component('pimg', pimg)
```
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "pimg",
"version": "1.1.0",
"version": "1.1.2",
"description": "Progressive Image Component",
"main": "dist/pimg.js",
"module": "dist/pimg.es.js",
"umd": "dist/pimg.umd.js",
"scripts": {
"build": "npm-run-all rollup rollup:* minify:* -s size",
"build": "npm run clear:dist && npm-run-all rollup rollup:* minify:* -s size",
"contributors:add": "all-contributors add",
"clear:dist": "rm -rf dist vue preact",
"minify:cjs": "uglifyjs $npm_package_main -cm -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map",
Expand Down

0 comments on commit 926e3a9

Please sign in to comment.