Files
keras-js/webpack.dev.config.js
T
2016-08-21 21:36:07 -04:00

34 lines
646 B
JavaScript

const webpack = require('webpack')
module.exports = {
devtool: 'cheap-module-eval-source-map',
module: {
loaders: [
{
test: /\.js$/,
loaders: ['babel-loader'],
exclude: /node_modules/
}
]
},
output: {
library: 'KerasJS',
libraryTarget: 'umd'
},
resolve: {
extensions: ['', '.js']
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false
}
})
]
}