mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
build(webpack): use [contenthash] instead of [chunkhash] (#14942)
This commit is contained in:
@@ -59,11 +59,11 @@ if (isDevMode) {
|
||||
output.filename = '[name].[hash:8].entry.js';
|
||||
output.chunkFilename = '[name].[hash:8].chunk.js';
|
||||
} else if (nameChunks) {
|
||||
output.filename = '[name].[chunkhash].entry.js';
|
||||
output.chunkFilename = '[name].[chunkhash].chunk.js';
|
||||
output.filename = '[name].[contenthash].entry.js';
|
||||
output.chunkFilename = '[name].[contenthash].chunk.js';
|
||||
} else {
|
||||
output.filename = '[name].[chunkhash].entry.js';
|
||||
output.chunkFilename = '[chunkhash].chunk.js';
|
||||
output.filename = '[name].[contenthash].entry.js';
|
||||
output.chunkFilename = '[contenthash].chunk.js';
|
||||
}
|
||||
|
||||
const plugins = [
|
||||
@@ -155,8 +155,8 @@ if (!isDevMode) {
|
||||
// text loading (webpack 4+)
|
||||
plugins.push(
|
||||
new MiniCssExtractPlugin({
|
||||
filename: '[name].[chunkhash].entry.css',
|
||||
chunkFilename: '[name].[chunkhash].chunk.css',
|
||||
filename: '[name].[contenthash].entry.css',
|
||||
chunkFilename: '[name].[contenthash].chunk.css',
|
||||
}),
|
||||
);
|
||||
plugins.push(new OptimizeCSSAssetsPlugin());
|
||||
|
||||
Reference in New Issue
Block a user