mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 12:20:56 +01:00
use node_env as babel cache key, in order to fix production js bundles
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module.exports = api => {
|
||||
api.cache.using(() => process.env.NODE_ENV || "production");
|
||||
return {
|
||||
presets: [
|
||||
require("@babel/preset-env"),
|
||||
|
||||
@@ -5,8 +5,7 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
||||
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV !== "production";
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV === "development";
|
||||
const root = path.resolve(process.cwd(), "scm-ui");
|
||||
|
||||
module.exports = [
|
||||
|
||||
Reference in New Issue
Block a user