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

31 lines
727 B
JavaScript

const path = require('path');
const webpack = require('webpack');
const c = require('./webpack.config.common.js');
module.exports = {
context: c.context,
entry: {
"category-overview": path.join(__dirname, 'client', 'Guide', 'Client', 'CategoryOverview-entry.js'),
"category-detail": path.join(__dirname, 'client', 'Guide', 'Client', 'CategoryDetail-entry.js')
},
output: {
path: path.join(__dirname, '/public'),
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
}