Skip to content

Commit

Permalink
Add pako as a webpack external dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvictoor committed Dec 17, 2016
1 parent 9e46649 commit 738918c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var libraryName = 'hdrhistogram',
outputFile;

if (yargs.argv.p) {
//plugins.push(new webpack.optimize.UglifyJsPlugin({ minimize: true }));
plugins.push(new webpack.optimize.UglifyJsPlugin({ minimize: true }));
outputFile = libraryName + '.min.js';
} else {
outputFile = libraryName + '.js';
Expand All @@ -34,6 +34,13 @@ var config = {
root: path.resolve('./src'),
extensions: [ '', '.js', '.ts', '.jsx', '.tsx' ]
},

externals: {
"pako": "pako",
"pako/lib/deflate": "pako",
"pako/lib/inflate": "pako"
},

plugins: plugins
};

Expand Down

0 comments on commit 738918c

Please sign in to comment.