Skip to content

Commit b3e24fe

Browse files
committed
compress: index.js && update: README.md
1 parent e8cd575 commit b3e24fe

File tree

4 files changed

+7
-361
lines changed

4 files changed

+7
-361
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ $ npm i vue-simple-lazyload -S
145145
```
146146

147147
## Required
148-
> This project base on [Intersection_Observer_API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). Need import polyfill.
148+
> This project base on [Intersection_Observer_API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). Need import polyfill if necessary.
149149
150150

151151
## TODO

index.js

Lines changed: 1 addition & 358 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"rollup": "^2.0.3",
1919
"rollup-plugin-babel": "^4.4.0",
2020
"rollup-plugin-commonjs": "^10.1.0",
21+
"rollup-plugin-uglify": "^6.0.4",
2122
"rollup-plugin-vue": "^5.1.6",
2223
"vue": "^2.6.11",
2324
"vue-template-compiler": "^2.6.11"

rollup.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import babel from 'rollup-plugin-babel';
1+
import babel from 'rollup-plugin-babel'
22
import commonjs from 'rollup-plugin-commonjs'
33
import VuePlugin from 'rollup-plugin-vue'
4+
import { uglify } from "rollup-plugin-uglify"
45

56
export default {
67
input: 'src/main.js',
@@ -15,6 +16,7 @@ export default {
1516
runtimeHelpers: true,
1617
sourceMap: true,
1718
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue'],
18-
})
19+
}),
20+
uglify()
1921
]
2022
};

0 commit comments

Comments
 (0)