1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-25 22:02:58 +03:00
guide/front-ps/webpack.config.server.js
Jens Krause 4367331565
Build server-side by webpack (#193)
+ make `webpack` configs DRY
2017-08-27 21:28:38 +02:00

30 lines
572 B
JavaScript

const path = require('path');
const webpack = require('webpack');
const c = require('./webpack.config.common.js');
module.exports = {
target: 'node',
entry: {
"server": path.join(__dirname, 'server', 'entry.js')
},
output: {
path: path.join(__dirname, 'dist'),
publicPath: '/',
filename: '[name].js',
pathinfo: true
},
plugins: c.plugins,
module: {
loaders: c.loaders
},
resolveLoader: {
modules: [
path.join(__dirname, 'node_modules')
]
},
resolve: c.resolve,
performance: c.performance,
stats: c.stats
}