react-ssr-boilerplate/webpack.server.js

14 lines
330 B
JavaScript
Raw Normal View History

2024-04-12 23:00:45 +00:00
const path = require('path');
2024-04-12 23:55:40 +00:00
const merge = require('webpack-merge');
const baseConfig = require('./webpack.base.js')
2024-04-12 23:00:45 +00:00
2024-04-12 23:55:40 +00:00
const config = {
2024-04-12 23:00:45 +00:00
target: 'node',
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'build')
}
2024-04-12 23:55:40 +00:00
};
module.exports = merge(baseConfig, config);