mirror of https://github.com/apache/superset.git
This reverts commit 821519fcfa
.
This commit is contained in:
parent
f35ce394bf
commit
7a1223ca7d
|
@ -60,11 +60,11 @@ if (isDevMode) {
|
||||||
output.filename = '[name].[hash:8].entry.js';
|
output.filename = '[name].[hash:8].entry.js';
|
||||||
output.chunkFilename = '[name].[hash:8].chunk.js';
|
output.chunkFilename = '[name].[hash:8].chunk.js';
|
||||||
} else if (nameChunks) {
|
} else if (nameChunks) {
|
||||||
output.filename = '[name].[contenthash].entry.js';
|
output.filename = '[name].[chunkhash].entry.js';
|
||||||
output.chunkFilename = '[name].[contenthash].chunk.js';
|
output.chunkFilename = '[name].[chunkhash].chunk.js';
|
||||||
} else {
|
} else {
|
||||||
output.filename = '[name].[contenthash].entry.js';
|
output.filename = '[name].[chunkhash].entry.js';
|
||||||
output.chunkFilename = '[contenthash].chunk.js';
|
output.chunkFilename = '[chunkhash].chunk.js';
|
||||||
}
|
}
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
|
@ -157,8 +157,8 @@ if (!isDevMode) {
|
||||||
// text loading (webpack 4+)
|
// text loading (webpack 4+)
|
||||||
plugins.push(
|
plugins.push(
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: '[name].[contenthash].entry.css',
|
filename: '[name].[chunkhash].entry.css',
|
||||||
chunkFilename: '[name].[contenthash].chunk.css',
|
chunkFilename: '[name].[chunkhash].chunk.css',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
plugins.push(new OptimizeCSSAssetsPlugin());
|
plugins.push(new OptimizeCSSAssetsPlugin());
|
||||||
|
|
Loading…
Reference in New Issue