mirror of https://github.com/apache/superset.git
chore: remove TerserPlugin step for build (#16163)
This commit is contained in:
parent
3712ee02fa
commit
79e8d77acc
|
@ -64,7 +64,7 @@ RUN /frontend-mem-nag.sh \
|
|||
|
||||
# Next, copy in the rest and let webpack do its thing
|
||||
COPY ./superset-frontend /app/superset-frontend
|
||||
# This is BY FAR the most expensive step (thanks Terser!)
|
||||
# This seems to be the most expensive step
|
||||
RUN cd /app/superset-frontend \
|
||||
&& npm run ${BUILD_CMD} \
|
||||
&& rm -rf node_modules
|
||||
|
|
|
@ -247,7 +247,6 @@
|
|||
"storybook-addon-jsx": "^7.3.3",
|
||||
"storybook-addon-paddings": "^3.2.0",
|
||||
"style-loader": "^1.0.0",
|
||||
"terser-webpack-plugin": "^1.1.0",
|
||||
"thread-loader": "^1.2.0",
|
||||
"transform-loader": "^0.2.3",
|
||||
"ts-jest": "^26.4.2",
|
||||
|
|
|
@ -299,7 +299,6 @@
|
|||
"storybook-addon-jsx": "^7.3.3",
|
||||
"storybook-addon-paddings": "^3.2.0",
|
||||
"style-loader": "^1.0.0",
|
||||
"terser-webpack-plugin": "^1.1.0",
|
||||
"thread-loader": "^1.2.0",
|
||||
"transform-loader": "^0.2.3",
|
||||
"ts-jest": "^26.4.2",
|
||||
|
|
|
@ -27,7 +27,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const ManifestPlugin = require('webpack-manifest-plugin');
|
||||
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
||||
const parsedArgs = require('yargs').argv;
|
||||
|
@ -508,14 +507,6 @@ if (isDevMode) {
|
|||
if (hasSymlink) {
|
||||
console.log(''); // pure cosmetic new line
|
||||
}
|
||||
} else {
|
||||
config.optimization.minimizer = [
|
||||
new TerserPlugin({
|
||||
cache: '.terser-plugin-cache/',
|
||||
parallel: true,
|
||||
extractComments: true,
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
// Bundle analyzer is disabled by default
|
||||
|
|
Loading…
Reference in New Issue