1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-28 04:53:06 +03:00
guide/front-ps/webpack.config.server.js
2017-11-05 19:54:11 +01:00

24 lines
497 B
JavaScript

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