mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-07-16 09:14:37 -04:00
refactor: [UEPR-17] Removed usage of Terser plugin in webpack config, depend on minimize flag
This commit is contained in:
parent
991269bb52
commit
cf8c433a50
1 changed files with 0 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
|
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
|
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
|
||||||
|
@ -11,13 +10,6 @@ const baseConfig = new ScratchWebpackConfigBuilder({
|
||||||
})
|
})
|
||||||
.enableDevServer(process.env.PORT || 8361)
|
.enableDevServer(process.env.PORT || 8361)
|
||||||
.merge({
|
.merge({
|
||||||
optimization: {
|
|
||||||
minimizer: [
|
|
||||||
new TerserPlugin({
|
|
||||||
include: /\.min\.js$/
|
|
||||||
})
|
|
||||||
]
|
|
||||||
},
|
|
||||||
resolve: {
|
resolve: {
|
||||||
fallback: {
|
fallback: {
|
||||||
Buffer: require.resolve('buffer/')
|
Buffer: require.resolve('buffer/')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue