Skip to content

Commit

Permalink
Merge pull request #23 from DGulshan/webpack-4-warning-fix
Browse files Browse the repository at this point in the history
Webpack 4 - Tapable.apply deprecation warning
  • Loading branch information
nwinch committed Jul 16, 2018
2 parents ec508f2 + 8eb5af8 commit c150168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ DotenvPlugin.prototype.apply = function(compiler) {
'process.env': definitions,
};

compiler.apply(new DefinePlugin(plugin));
new DefinePlugin(plugin).apply(compiler);
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-dotenv-plugin",
"version": "2.0.2",
"version": "2.1.0",
"description": "Use dotenv with webpack.",
"main": "index.js",
"scripts": {
Expand All @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/nwinch/webpack-dotenv-plugin#readme",
"dependencies": {
"dotenv-safe": "^4.0.4"
"dotenv-safe": "^5.0.1"
},
"peerDependencies": {
"webpack": ">=1.13.0"
Expand Down

0 comments on commit c150168

Please sign in to comment.