diff --git a/README.md b/README.md index 8a22998..429adc7 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,6 @@ A file loader module for webpack -## Requirements - -This module requires a minimum of Node v6.9.0 and works with Webpack v3 and Webpack v4. - ## Getting Started To begin, you'll need to install `file-loader`: diff --git a/package.json b/package.json index 757ee77..d31f890 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dist" ], "peerDependencies": { - "webpack": "^2.0.0 || ^3.0.0 || ^4.0.0" + "webpack": "^4.0.0" }, "dependencies": { "loader-utils": "^1.0.2", diff --git a/src/index.js b/src/index.js index 532ef2a..4edb5cf 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,3 @@ -/* eslint-disable - multiline-ternary, -*/ import path from 'path'; import loaderUtils from 'loader-utils'; @@ -17,10 +14,7 @@ export default function loader(content) { validateOptions(schema, options, 'File Loader'); - const context = - options.context || - this.rootContext || - (this.options && this.options.context); + const context = options.context || this.rootContext; const url = loaderUtils.interpolateName(this, options.name, { context,