mirror of
https://github.com/wassname/keras-js.git
synced 2026-09-11 12:20:53 +08:00
enable async and update webpack config
This commit is contained in:
+11
-4
@@ -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']
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user