Skip to content

Instantly share code, notes, and snippets.

@debabrata100
Last active February 10, 2018 20:19
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 debabrata100/2172a4cb38277683a6fb0b1ae0c1a48e to your computer and use it in GitHub Desktop.
Save debabrata100/2172a4cb38277683a6fb0b1ae0c1a48e to your computer and use it in GitHub Desktop.
const config = {
entry: ['./app/index.js'],
output: {
path: __dirname + '/build',
filename: 'game-lib.js'
},
module: {
loaders: [
{
loader:'babel-loader',
test: /\.js$/,
exclude: /node_modules/,
query: {
presets: ['es2015']
}
}
]
},
resolve: {
extensions: ['.js']
},
devServer:{
port: 3000,
contentBase: __dirname + '/build',
inline: true
}
}
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment