MM-52536 Webpack unification part 2 (#23557)
* Remove unused bundle-loader * Remove broken webpack-live-reload-plugin * Remove unused terser-webpack-plugin * Remove unused dotenv-webpack * Update and share type definition for Webpack global values * Share eslint-import-resolver-webpack * Remove unused pmmmwh/react-refresh-webpack-plugin * Remove webpack-cli/serve since it's already part of webpack-cli * Remove unused Webpack packages from Components * Share and update style-loader * Remove unused image-webpack-loader from Boards
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c2417efc33
Коммит
dfdc0e28d0
@@ -15,7 +15,6 @@ const {ModuleFederationPlugin} = require('webpack').container;
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const WebpackPwaManifest = require('webpack-pwa-manifest');
|
||||
const LiveReloadPlugin = require('webpack-livereload-plugin');
|
||||
|
||||
// const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
|
||||
|
||||
@@ -413,9 +412,6 @@ if (DEV) {
|
||||
const env = {};
|
||||
if (DEV) {
|
||||
env.PUBLIC_PATH = JSON.stringify(publicPath);
|
||||
if (process.env.MM_LIVE_RELOAD) {
|
||||
config.plugins.push(new LiveReloadPlugin());
|
||||
}
|
||||
} else {
|
||||
env.NODE_ENV = JSON.stringify('production');
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user