Created
August 10, 2017 06:45
-
-
Save faceyspacey/38d1bb89c3e0ac1f9b89ecea86c77f34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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