react-ssr-boilerplate/webpack.server.js

14 lines
330 B
JavaScript

const path = require('path');
const merge = require('webpack-merge');
const baseConfig = require('./webpack.base.js')
const config = {
target: 'node',
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'build')
}
};
module.exports = merge(baseConfig, config);