Skip to content

Commit 2c77273

Browse files
committed
Uglify build
1 parent 848eed9 commit 2c77273

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-lazy-load-image-component",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": " React Component to lazy load images using a HOC to track window scroll position. ",
55
"main": "build/index.js",
66
"peerDependencies": {

webpack.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var path = require('path');
1+
const webpack = require('webpack');
2+
const path = require('path');
3+
24
module.exports = {
35
entry: './src/index.js',
46
output: {
@@ -30,5 +32,8 @@ module.exports = {
3032
externals: {
3133
'react': 'commonjs react',
3234
'react-dom': 'commonjs react-dom',
33-
}
35+
},
36+
plugins: [
37+
new webpack.optimize.UglifyJsPlugin()
38+
]
3439
};

0 commit comments

Comments
 (0)