enable async and update webpack config

This commit is contained in:
Leon Chen
2016-09-16 15:55:28 -04:00
parent 6511aef7a9
commit 32a6f00ff4
3 changed files with 34 additions and 10 deletions
+11 -4
View File
@@ -1,6 +1,17 @@
const path = require('path')
const webpack = require('webpack')
module.exports = {
entry: [
'babel-polyfill',
path.join(__dirname, 'src/index')
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'keras.js',
library: 'KerasJS',
libraryTarget: 'umd'
},
devtool: 'cheap-module-eval-source-map',
module: {
loaders: [
@@ -11,10 +22,6 @@ module.exports = {
}
]
},
output: {
library: 'KerasJS',
libraryTarget: 'umd'
},
resolve: {
extensions: ['', '.js']
},