Custom forms list Updated DB schema (not yet implemented in the server, which means that most of the server is not broken). - custom forms are independent of a list - order and visibility of fields is now in custom_fields - first_name and last_name has been turned to a regular custom field
37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
const webpack = require('webpack');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
namespaces: ['babel-polyfill', './src/namespaces/root.js'],
|
|
users: ['babel-polyfill', './src/users/root.js'],
|
|
account: ['babel-polyfill', './src/account/root.js'],
|
|
reports: ['babel-polyfill', './src/reports/root.js'],
|
|
lists: ['babel-polyfill', './src/lists/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',
|
|
mailtrainConfig: 'mailtrainConfig'
|
|
},
|
|
plugins: [
|
|
// new webpack.optimize.UglifyJsPlugin(),
|
|
new webpack.optimize.CommonsChunkPlugin('common')
|
|
],
|
|
watchOptions: {
|
|
ignored: 'node_modules/',
|
|
poll: 1000
|
|
}
|
|
};
|