Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update file-loader in / from 1.1.6 to 1.1.9 #43

Closed
wants to merge 1 commit into from

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Feb 26, 2018

Dependencies.io has updated file-loader (a npm dependency in /) from "1.1.6" to "1.1.9".

1.1.9

2018-02-21

Bug Fixes

  • index: handle protocol URL's correctly (options.publicPath) (#253) (54fa5a3)
  • index: use path.posix for platform consistency (#254) (2afe0af)
1.1.8

2018-02-20

Bug Fixes

  • index: context takes precedence over issuer.context (options.useRelativePath) (3b071f5)
  • index: don't append outputPath to the original url (options.outputPath {Function}) (4c1ccaa)
  • index: normalize and concat paths via path.join() (26e47ca)
1.1.7

2018-02-19

Bug Fixes

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

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

@severest severest closed this Mar 19, 2018
@severest severest deleted the file-loader-1.1.9-7.0.0 branch March 19, 2018 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants