Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

v1.1.7

Compare
Choose a tag to compare
@michael-ciniawsky michael-ciniawsky released this 19 Feb 18:32
· 75 commits to master since this release

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