You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by se...@apache.org on 2021/06/23 16:42:03 UTC
[superset] branch master updated: Revert "build(webpack): use
[contenthash] instead of [chunkhash] (#14942)" (#15285)
This is an automated email from the ASF dual-hosted git repository.
serena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 7a1223c Revert "build(webpack): use [contenthash] instead of [chunkhash] (#14942)" (#15285)
7a1223c is described below
commit 7a1223ca7dc4877717ed3e6e257a7a1a131991a7
Author: Erik Ritter <er...@airbnb.com>
AuthorDate: Wed Jun 23 09:41:19 2021 -0700
Revert "build(webpack): use [contenthash] instead of [chunkhash] (#14942)" (#15285)
This reverts commit 821519fcfa2619961cdc52b64239c40c79c4222c.
---
superset-frontend/webpack.config.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js
index 00b0439..3de6365 100644
--- a/superset-frontend/webpack.config.js
+++ b/superset-frontend/webpack.config.js
@@ -60,11 +60,11 @@ if (isDevMode) {
output.filename = '[name].[hash:8].entry.js';
output.chunkFilename = '[name].[hash:8].chunk.js';
} else if (nameChunks) {
- output.filename = '[name].[contenthash].entry.js';
- output.chunkFilename = '[name].[contenthash].chunk.js';
+ output.filename = '[name].[chunkhash].entry.js';
+ output.chunkFilename = '[name].[chunkhash].chunk.js';
} else {
- output.filename = '[name].[contenthash].entry.js';
- output.chunkFilename = '[contenthash].chunk.js';
+ output.filename = '[name].[chunkhash].entry.js';
+ output.chunkFilename = '[chunkhash].chunk.js';
}
const plugins = [
@@ -157,8 +157,8 @@ if (!isDevMode) {
// text loading (webpack 4+)
plugins.push(
new MiniCssExtractPlugin({
- filename: '[name].[contenthash].entry.css',
- chunkFilename: '[name].[contenthash].chunk.css',
+ filename: '[name].[chunkhash].entry.css',
+ chunkFilename: '[name].[chunkhash].chunk.css',
}),
);
plugins.push(new OptimizeCSSAssetsPlugin());