NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2490 most downloaded on npm
A file loader module for webpack
Latest stable
6.2.0
Last release 6 years ago
no release in 18 months
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 33 of 49 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
52 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
added the sourceFilename property to asset info with original filename
Your coding agent can read these notes before it upgrades. Set up the MCP server →
### 6.1.1 (2020-10-09) ### Chore * update schema-utils
pass immutable flag to asset info
## 6.0.0 (2020-03-17) ### ⚠ BREAKING CHANGES * use md4 by default for hashing
support the query template for the name option
add the funding field in package.json
name of esModule option in source code
minimum required nodejs version is 10.13.0
10.13.0esModules option to esModuleesModule is true by default)new esModules option to output ES modules
## 4.2.0 (2019-08-07) ### Features * postTransformPublicPath option
improved validation error messages
deps: minimum required nodejs version is 8.9.0
relax options validation for additional properties
<a name="3.0.0"></a>
resourcePath is now available in outputPath and publicPath (#304) (0d66e64)context is now available in outputPath and publicPath (#305) (d5eb823)useRelativePath option. It is dangerously and break url when you use multiple entry points.<a name="2.0.0"></a>
engines of "node": ">=6.9.0 < 7.0.0 || >= 8.9.0"<a name="1.1.11"></a>
more validations in options schema
<a name="3.0.0"></a>
resourcePath is now available in outputPath and publicPath (#304) (0d66e64)context is now available in outputPath and publicPath (#305) (d5eb823)useRelativePath option. It is dangerously and break url when you use multiple entry points.defaults: update to latest webpack-defaults
Code RefactoringBREAKING CHANGESengines of "node": ">=6.9.0 < 7.0.0 || >= 8.9.0"index: context takes precedence over issuer.context (options.useRelativePath)
Revertspackage: add webpack >= 4 (peerDependencies)
index: handle protocol URL's correctly (options.publicPath)
Bug Fixesindex: context takes precedence over issuer.context (options.useRelativePath)
Bug Fixesindex: don't concat options.outputPath and options.publicPath
Bug Fixes<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
</details>
rootContext compatibility fix for legacy / v4 (#237) (1e4b7cf), closes #237
schema: allow name to be a {Function} (options.name)
## 2017-09-30 ### Bug Fixes * index: revert to CJS exports
## 2017-09-30
## 2017-09-30 ### Bug Fixes * cjs: export raw value
schema: allow additionalProperties
<a name="1.1.0"></a>
<a name="1.0.0"></a>
>= 4.3 < 5.0.0 || >= 5.10.<a name="1.0.0-rc.0"></a>
<a name="1.0.0-beta.1"></a>
<a name="1.0.0-beta.0"></a>
>= 4.3 < 5.0.0 || >= 5.10.<a name="0.11.2"></a>
add options validation (schema-utils)
remove = from default export (SyntaxError)
<a name="1.0.0"></a>
Enforces Webpack standard NodeJS engines range.
at the time of merge >= 4.3 < 5.0.0 || >= 5.10.
Enforces Webpack peerDependency range ^2.0.0 || ^3.0.0.
remove = from default export (SyntaxError)
# 1.0.0-beta.1 (2017-06-09) ### Code Refactoring * Upgrade to defaults 1.3.0
Enforces Webpack standard NodeJS engines range. at the time of merge >= 4.3 < 5.0.0 || >= 5.10.
<a name="1.0.0-beta.0"></a>
>= 4.3 < 5.0.0 || >= 5.10.outputPath function overriden by useRelativePath
# 0.11.0 (2017-03-31) ### Features * Emit files with relative urls
getOptions: deprecation warn in loaderUtils
<a name="0.10.0"></a>
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
resources: specify custom public file name
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.