We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848eed9 commit 2c77273Copy full SHA for 2c77273
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-lazy-load-image-component",
3
- "version": "1.0.2",
+ "version": "1.0.3",
4
"description": " React Component to lazy load images using a HOC to track window scroll position. ",
5
"main": "build/index.js",
6
"peerDependencies": {
webpack.config.js
@@ -1,4 +1,6 @@
-var path = require('path');
+const webpack = require('webpack');
+const path = require('path');
+
module.exports = {
entry: './src/index.js',
output: {
@@ -30,5 +32,8 @@ module.exports = {
30
32
externals: {
31
33
'react': 'commonjs react',
34
'react-dom': 'commonjs react-dom',
- }
35
+ },
36
+ plugins: [
37
+ new webpack.optimize.UglifyJsPlugin()
38
+ ]
39
};
0 commit comments