mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
21 lines
509 B
TypeScript
21 lines
509 B
TypeScript
import { commonExports } from './webpack.common';
|
|
import { projectRoot } from './helpers';
|
|
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = Object.assign({}, commonExports, {
|
|
plugins: [
|
|
...commonExports.plugins,
|
|
new webpack.EnvironmentPlugin({
|
|
'process.env': {
|
|
NODE_ENV: JSON.stringify('production'),
|
|
AOT: true
|
|
}
|
|
}),
|
|
],
|
|
mode: 'production',
|
|
recordsOutputPath: projectRoot('webpack.records.json'),
|
|
entry: projectRoot('./server.ts'),
|
|
target: 'node',
|
|
});
|