Files
dspace-angular/webpack/webpack.server.js
2019-05-31 09:44:49 +02:00

29 lines
614 B
JavaScript

var nodeExternals = require('webpack-node-externals');
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/]
})],
}
}
};