mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
const path = require('path');
|
|
const child_process = require('child_process');
|
|
|
|
const heapSize = 4096;
|
|
const webpackPath = path.join('node_modules', 'webpack', 'bin', 'webpack.js');
|
|
|
|
const params = [
|
|
'--max_old_space_size=' + heapSize,
|
|
webpackPath,
|
|
...process.argv.slice(2)
|
|
];
|
|
|
|
child_process.spawn('node', params, { stdio:'inherit' });
|