Skip to content

Commit 312c08d

Browse files
committed
Merge branch 'release/1.1.6'
2 parents 3c996a8 + dc5b37c commit 312c08d

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Annotated webpack 4 config changelog
22

3+
## 1.1.6 - 2020.08.12
4+
### Changed
5+
* Remove `[hash]` from dev config to eliminate potential [memory errors](https://github.com/webpack/webpack-dev-server/issues/438)
6+
* Use `[contenthash]` in production instead of [hash or chunkhash](https://github.com/webpack/webpack.js.org/issues/2096)
7+
* Replaced moment.js with vanilla JavaScript
8+
39
## 1.1.5 - 2020-02-05
410
### Changed
511
* Removed entirely the concept of a "modern" and "legacy" build from the `webpack.dev.js`; we don't need legacy builds with `webpack-dev-server`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-project",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "Example Project brand website",
55
"keywords": [
66
"Example",

webpack.dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const configureImageLoader = () => {
4343
{
4444
loader: 'file-loader',
4545
options: {
46-
name: 'img/[name].[hash].[ext]'
46+
name: 'img/[name].[ext]'
4747
}
4848
}
4949
]
@@ -87,7 +87,7 @@ module.exports = merge(
8787
common.modernConfig,
8888
{
8989
output: {
90-
filename: path.join('./js', '[name].[hash].js'),
90+
filename: path.join('./js', '[name].js'),
9191
publicPath: settings.devServerConfig.public() + '/',
9292
},
9393
mode: 'development',

webpack.prod.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const configureImageLoader = (buildType) => {
167167
{
168168
loader: 'file-loader',
169169
options: {
170-
name: 'img/[name].[hash].[ext]'
170+
name: 'img/[name].[contenthash].[ext]'
171171
}
172172
}
173173
]
@@ -180,7 +180,7 @@ const configureImageLoader = (buildType) => {
180180
{
181181
loader: 'file-loader',
182182
options: {
183-
name: 'img/[name].[hash].[ext]'
183+
name: 'img/[name].[contenthash].[ext]'
184184
}
185185
},
186186
{
@@ -349,7 +349,7 @@ module.exports = [
349349
common.legacyConfig,
350350
{
351351
output: {
352-
filename: path.join('./js', '[name]-legacy.[chunkhash].js'),
352+
filename: path.join('./js', '[name]-legacy.[contenthash].js'),
353353
},
354354
mode: 'production',
355355
devtool: 'source-map',
@@ -363,7 +363,7 @@ module.exports = [
363363
plugins: [
364364
new MiniCssExtractPlugin({
365365
path: path.resolve(__dirname, settings.paths.dist.base),
366-
filename: path.join('./css', '[name].[chunkhash].css'),
366+
filename: path.join('./css', '[name].[contenthash].css'),
367367
}),
368368
new PurgecssPlugin(
369369
configurePurgeCss()
@@ -399,7 +399,7 @@ module.exports = [
399399
common.modernConfig,
400400
{
401401
output: {
402-
filename: path.join('./js', '[name].[chunkhash].js'),
402+
filename: path.join('./js', '[name].[contenthash].js'),
403403
},
404404
mode: 'production',
405405
devtool: 'source-map',

0 commit comments

Comments
 (0)