Skip to content

Commit b9fe097

Browse files
committed
Refactored & Optimized the whole library for lighter weight and better performance.
1 parent b06357f commit b9fe097

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ $ npm run build
5757
```html
5858
<head>
5959

60-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/TarekRaafat/autoComplete.js@1.0.2/dist/css/autoComplete.css">
60+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/TarekRaafat/autoComplete.js@1.1.0/dist/css/autoComplete.css">
6161

6262
</head>
6363
```
6464
`JS`
6565
```html
6666
<body>
6767

68-
<script src="https://cdn.jsdelivr.net/gh/TarekRaafat/autoComplete.js@1.0.2/dist/js/autoComplete.js"></script>
68+
<script src="https://cdn.jsdelivr.net/gh/TarekRaafat/autoComplete.js@1.1.0/dist/js/autoComplete.min.js"></script>
6969

7070
</body>
7171
```
@@ -190,8 +190,8 @@ For more information on semantic versioning, please visit http://semver.org/.
190190

191191
## Release History
192192
* v1.1.0
193-
* Reduced the library size 96%
194-
* Introducing 2 different verions of the library (vanilla, minified)
193+
* Reduced the library size 97% `(101KB -> 4KB)`
194+
* Introducing 2 different verions of the library `(pure, minified)`
195195
* Replaced webpack with Rollup for better bundling
196196
* Fixed some bugs caused problems with node apps
197197
* v1.0.3

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default [
77
{
88
input: 'src/js/models/Search.js',
99
output: {
10-
file: pkg.main,
10+
file: pkg.browser,
1111
name: 'autoComplete',
1212
format: 'umd'
1313
},
@@ -31,9 +31,9 @@ export default [
3131
{
3232
input: 'src/js/models/Search.js',
3333
output: {
34-
file: pkg.browser,
34+
file: pkg.main,
3535
name: 'autoComplete',
36-
format: 'iife'
36+
format: 'umd'
3737
},
3838
plugins: [
3939
babel({

0 commit comments

Comments
 (0)