Skip to content

Instantly share code, notes, and snippets.

@faceyspacey
Created August 10, 2017 06:45
Show Gist options
  • Save faceyspacey/38d1bb89c3e0ac1f9b89ecea86c77f34 to your computer and use it in GitHub Desktop.
Save faceyspacey/38d1bb89c3e0ac1f9b89ecea86c77f34 to your computer and use it in GitHub Desktop.
// client
const webpack = require('webpack')
const path = require('path')
module.exports = {
name: 'client',
entry: [
path.resolve(__dirname, '../src/index.js')
],
output: {
filename: '[name].js',
path: path.resolve(__dirname, '../buildClient'),
publicPath: '/static/'
},
// server
const webpack = require('webpack')
const path = require('path')
module.exports = {
name: 'server',
target: 'node',
entry: [
path.resolve(__dirname, '../server/render.js')
],
output: {
filename: '[name].js',
path: path.resolve(__dirname, '../buildServer'),
publicPath: '/static/'.
libraryTarget: 'commonjs2',
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment