mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
removed node env variable
This commit is contained in:
@@ -4,25 +4,27 @@ const {
|
||||
buildRoot
|
||||
} = require('./helpers');
|
||||
|
||||
module.exports = {
|
||||
getServerWebpackPartial: function (aot) {
|
||||
const entry = aot ? buildRoot('./main.server.aot.ts') : buildRoot('./main.server.ts');
|
||||
return {
|
||||
entry: entry,
|
||||
output: {
|
||||
filename: 'server.js'
|
||||
},
|
||||
target: 'node',
|
||||
externals: [nodeExternals({
|
||||
whitelist: [
|
||||
/@angular/,
|
||||
/@ng/,
|
||||
/angular2-text-mask/,
|
||||
/ng2-file-upload/,
|
||||
/angular-sortablejs/,
|
||||
/sortablejs/,
|
||||
/ngx/]
|
||||
})],
|
||||
module.exports = (env) => {
|
||||
return {
|
||||
getServerWebpackPartial: function (aot) {
|
||||
const entry = aot ? buildRoot('./main.server.aot.ts', env) : buildRoot('./main.server.ts', env);
|
||||
return {
|
||||
entry: entry,
|
||||
output: {
|
||||
filename: 'server.js'
|
||||
},
|
||||
target: 'node',
|
||||
externals: [nodeExternals({
|
||||
whitelist: [
|
||||
/@angular/,
|
||||
/@ng/,
|
||||
/angular2-text-mask/,
|
||||
/ng2-file-upload/,
|
||||
/angular-sortablejs/,
|
||||
/sortablejs/,
|
||||
/ngx/]
|
||||
})],
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user