Skip to content

Commit

Permalink
chore(NA): remove webpack build changes for kbn/ui-shared-deps (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic authored Jun 21, 2021
1 parent 7c429f7 commit 5ac9a38
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/kbn-ui-shared-deps/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

const Path = require('path');
const Os = require('os');

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
Expand All @@ -31,15 +30,15 @@ module.exports = {
'kbn-ui-shared-deps.v8.light': ['@elastic/eui/dist/eui_theme_amsterdam_light.css'],
},
context: __dirname,
devtool: 'cheap-source-map',
// cheap-source-map should be used if needed
devtool: false,
output: {
path: UiSharedDeps.distDir,
filename: '[name].js',
sourceMapFilename: '[file].map',
devtoolModuleFilenameTemplate: (info) =>
`kbn-ui-shared-deps/${Path.relative(REPO_ROOT, info.absoluteResourcePath)}`,
library: '__kbnSharedDeps__',
futureEmitAssets: true,
},

module: {
Expand Down Expand Up @@ -111,7 +110,7 @@ module.exports = {
optimization: {
minimizer: [
new CssMinimizerPlugin({
parallel: Math.min(Os.cpus().length, 2),
parallel: false,
minimizerOptions: {
preset: [
'default',
Expand All @@ -125,7 +124,7 @@ module.exports = {
cache: false,
sourceMap: false,
extractComments: false,
parallel: Math.min(Os.cpus().length, 2),
parallel: false,
terserOptions: {
compress: true,
mangle: true,
Expand Down

0 comments on commit 5ac9a38

Please sign in to comment.