Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 20, 2018

Dependencies.io has updated file-loader (a npm dependency in /site) from "1.1.5" to "1.1.7".

1.1.7

2018-02-19

Bug Fixes

  • index: don't concat options.outputPath and options.publicPath (#246) (98bf052)
Details

webpack.config.js

{
  test: /\.svg$/,
  use: [
    {
      loader: 'file-loader',
      options: {
        name: '[name].[ext]',
        outputPath: 'assets/',
        publicPath: 'public/'
      }
    }
  ]
})

bundle.js

/***/ (function(module, exports) {

- module.exports = "./public/assets/file.svg";
+ module.exports = "./public/file.svg";

/***/ }),
|- src
| |– file.svg
|- dist
| |- assets
| | |– file.svg

@ghost ghost added the dependencies label Feb 20, 2018
@ghost ghost closed this Feb 21, 2018
@ghost
Copy link
Author

ghost commented Feb 21, 2018

This PR has been automatically closed in favor of #357.

@ghost ghost deleted the file-loader-1.1.7-115.2.1 branch February 21, 2018 16:23
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant