Skip to content

Commit

Permalink
СB-4495 clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed May 29, 2024
1 parent e61d3bd commit 2292170
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions webapp/packages/core-cli/configs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ module.exports = (env, argv) => {
entry,
output: {
filename: 'js/[name]-[contenthash].js',
chunkFilename(module) {
return 'js/[name]-[contenthash].js';
},
chunkFilename: 'js/[name]-[contenthash].js',
pathinfo: false,
},
optimization: {
Expand Down Expand Up @@ -336,9 +334,7 @@ module.exports = (env, argv) => {
new IgnoreNotFoundExportPlugin(),
new MiniCssExtractPlugin({
filename: 'styles/[name]-[contenthash].css',
chunkFilename(module) {
return 'styles/[name]-[contenthash].css';
},
chunkFilename: 'styles/[name]-[contenthash].css',
ignoreOrder: true, // Enable to remove warnings about conflicting order
insert: linkTag => {
document.head.appendChild(linkTag);
Expand Down
4 changes: 1 addition & 3 deletions webapp/packages/core-cli/configs/webpack.plugin.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ module.exports = (env, argv) => merge(commonConfig(env, argv), {
},
output: {
filename: '[name].public-ce.js',
chunkFilename(module) {
return '[name].[contenthash].bundle.public-ce.js';
},
chunkFilename: '[name].[contenthash].bundle.public-ce.js',
library: package.name,
libraryTarget: 'commonjs',
path: outputDir,
Expand Down
4 changes: 1 addition & 3 deletions webapp/packages/core-cli/configs/webpack.product.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ module.exports = (env, argv) => {
devtool: false,
output: {
filename: 'index.[contenthash].public-ce.js',
chunkFilename(module) {
return '[name].[contenthash].bundle.public-ce.js';
},
chunkFilename: '[name].[contenthash].bundle.public-ce.js',
library: package.name,
libraryTarget: 'umd',
path: outputDir,
Expand Down

0 comments on commit 2292170

Please sign in to comment.