Skip to content

Commit

Permalink
ci: max space size
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Dec 14, 2024
1 parent a29c75a commit 2689c85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dev": "npm run start",
"start": "npm run pre:run && cross-env BUILD_GOAL=development NODE_ENV=development NODE_OPTIONS=--trace-deprecation webpack serve --config ./webpack/webpack.dev.js --stats-error-details",
"dev:faker": "concurrently -r \"npm run start\" \"npm run faker\"",
"build:production": "npm run && cross-env SENTRY_SOURCE_MAP=no BUILD_GOAL=production NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 NODE_OPTIONS=--trace-deprecation webpack --config ./webpack/webpack.prod.js --stats-error-details",
"build:production": "npm run && cross-env SENTRY_SOURCE_MAP=no BUILD_GOAL=production NODE_ENV=production NODE_OPTIONS=--max_old_space_size=8192 NODE_OPTIONS=--trace-deprecation webpack --config ./webpack/webpack.prod.js --stats-error-details",
"build:test": "cross-env SENTRY_SOURCE_MAP=no BUILD_GOAL=test NODE_ENV=production webpack --config ./webpack/webpack.prod.js --stats-error-details",
"build:dev": "cross-env SENTRY_SOURCE_MAP=no BUILD_GOAL=dev NODE_ENV=production webpack --config ./webpack/webpack.prod.js --stats-error-details",
"prod:serve": "cross-env SENTRY_SOURCE_MAP=no BUILD_SERVE=prod BUILD_GOAL=production NODE_ENV=production webpack --config ./webpack/webpack.prod.js --stats-error-details",
Expand Down
10 changes: 5 additions & 5 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
// const CircularDependencyPlugin = require('circular-dependency-plugin')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const WebpackBar = require('webpackbar')
// const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const ESLintWebpackPlugin = require('eslint-webpack-plugin')
const paths = require('./paths')

Expand Down Expand Up @@ -105,10 +105,10 @@ const config = {
// }),
new NodePolyfillPlugin(),
new WebpackBar(),
// new ForkTsCheckerWebpackPlugin({
// async: false,
// memoryLimit: 4096
// }),
new ForkTsCheckerWebpackPlugin({
async: false,
memoryLimit: 8192,
}),
new ESLintWebpackPlugin({
// 指定检查文件的根目录
context: path.resolve(__dirname, '../src'),
Expand Down

0 comments on commit 2689c85

Please sign in to comment.