Last active
February 10, 2018 20:19
-
-
Save debabrata100/2172a4cb38277683a6fb0b1ae0c1a48e to your computer and use it in GitHub Desktop.
This file contains 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
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