Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created June 28, 2016 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/60142e263e582d40549413272b4eee0f to your computer and use it in GitHub Desktop.
Save chuck0523/60142e263e582d40549413272b4eee0f to your computer and use it in GitHub Desktop.
const webpack = require('webpack')
const path = require('path')
const config = {
entry: {
client: ["./src/client.js"]
},
output: {
filename: '[name].js',
path: path.join(__dirname, 'public'),
publicPath: '/public/'
},
module: {
loaders: [
{
test: /.jsx?$/,
loaders: ['babel'],
exclude: /node_modules/
}
]
},
plugins: []
}
module.exports = config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment