Skip to content

Commit

Permalink
Merge branch 'release/2.3.2' into craft-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Aug 13, 2020
2 parents 282a127 + 2f0971f commit 199f62f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# nystudio107/craft Change Log

## 2.3.2 - 2020.08.12
### Changed
* Remove `[hash]` from dev config to eliminate potential [memory errors](https://github.com/webpack/webpack-dev-server/issues/438)
* Use `[contenthash]` in production instead of [hash or chunkhash](https://github.com/webpack/webpack.js.org/issues/2096)

## 2.3.1 - 2020.08.10
### Added
* Added `init` to the `docker-compose.yml` to processes are sent signals
Expand Down
8 changes: 4 additions & 4 deletions buildchain/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const configureImageLoader = (buildType) => {
{
loader: 'file-loader',
options: {
name: 'img/[name].[hash].[ext]'
name: 'img/[name].[ext]'
}
}
]
Expand All @@ -59,7 +59,7 @@ const configureImageLoader = (buildType) => {
{
loader: 'file-loader',
options: {
name: 'img/[name].[hash].[ext]'
name: 'img/[name].[ext]'
}
}
]
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = [
common.legacyConfig,
{
output: {
filename: path.join('./js', '[name]-legacy.[hash].js'),
filename: path.join('./js', '[name]-legacy.js'),
publicPath: settings.devServerConfig.public() + '/',
},
mode: 'development',
Expand All @@ -137,7 +137,7 @@ module.exports = [
common.modernConfig,
{
output: {
filename: path.join('./js', '[name].[hash].js'),
filename: path.join('./js', '[name].js'),
publicPath: settings.devServerConfig.public() + '/',
},
mode: 'development',
Expand Down
10 changes: 5 additions & 5 deletions buildchain/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const configureImageLoader = (buildType) => {
{
loader: 'file-loader',
options: {
name: 'img/[name].[hash].[ext]'
name: 'img/[name].[contenthash].[ext]'
}
}
]
Expand All @@ -180,7 +180,7 @@ const configureImageLoader = (buildType) => {
{
loader: 'file-loader',
options: {
name: 'img/[name].[hash].[ext]'
name: 'img/[name].[contenthash].[ext]'
}
},
{
Expand Down Expand Up @@ -352,7 +352,7 @@ module.exports = [
common.legacyConfig,
{
output: {
filename: path.join('./js', '[name]-legacy.[chunkhash].js'),
filename: path.join('./js', '[name]-legacy.[contenthash].js'),
},
mode: 'production',
devtool: 'source-map',
Expand All @@ -366,7 +366,7 @@ module.exports = [
plugins: [
new MiniCssExtractPlugin({
path: path.resolve(__dirname, settings.paths.dist.base),
filename: path.join('./css', '[name].[chunkhash].css'),
filename: path.join('./css', '[name].[contenthash].css'),
}),
new PurgecssPlugin(
configurePurgeCss()
Expand Down Expand Up @@ -402,7 +402,7 @@ module.exports = [
common.modernConfig,
{
output: {
filename: path.join('./js', '[name].[chunkhash].js'),
filename: path.join('./js', '[name].[contenthash].js'),
},
mode: 'production',
devtool: 'source-map',
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "craftcms/craft",
"description": "nystudio107 Craft 3.4 CMS scaffolding project",
"version": "2.3.1",
"version": "2.3.2",
"keywords": [
"craft",
"cms",
Expand Down

0 comments on commit 199f62f

Please sign in to comment.