mailtrain/client/webpack.config.js
Tomas Bures 5e4c86f626 Seems that hierarchical error handling works..
TreeTable component seems to work too.
Edit is half-way through. Create / delete are TBD.
2017-06-05 23:59:08 +02:00

28 lines
828 B
JavaScript

const webpack = require('webpack');
const path = require('path');
module.exports = {
entry: {
namespaces: ['babel-polyfill', './src/namespaces/root.js']
},
output: {
library: 'MailtrainReactBody',
filename: '[name].js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{test: /\.(js|jsx)$/, use: 'babel-loader'},
{test: /\.css$/, loader: 'style-loader!css-loader'},
{test: /\.(png|jpg|gif)$/, loader: 'url-loader?limit=8192' } // inline base64 URLs for <=8k images, direct URLs for the rest
]
},
externals: {
jquery: 'jQuery',
csfrToken: 'csfrToken'
},
plugins: [
// new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.CommonsChunkPlugin('common')
]
};