This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
Releases: webpack-contrib/file-loader
Releases · webpack-contrib/file-loader
v4.1.0
v4.0.0
v3.0.1
v3.0.0
3.0.0 (2018-12-20)
Code Refactoring
Features
resourcePath
is now available inoutputPath
andpublicPath
(#304) (0d66e64)context
is now available inoutputPath
andpublicPath
(#305) (d5eb823)
BREAKING CHANGES
- removed the
useRelativePath
option. It is dangerously and break url when you use multiple entry points. - drop support for webpack < 4
v2.0.0
2018-08-21
Code Refactoring
BREAKING CHANGES
- defaults: Enforces
engines
of"node": ">=6.9.0 < 7.0.0 || >= 8.9.0"
v1.1.11
2018-03-01
Reverts
v1.1.10
v1.1.9
v1.1.8
2018-02-20
Bug Fixes
v1.1.7
2018-02-19
Bug Fixes
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