Some bits for ReactJS-based client.
This commit is contained in:
parent
115d254baf
commit
4f52b571c9
27 changed files with 2326 additions and 202 deletions
27
client/webpack.config.js
Normal file
27
client/webpack.config.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
namespaces: './src/namespaces.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'
|
||||
},
|
||||
plugins: [
|
||||
// new webpack.optimize.UglifyJsPlugin(),
|
||||
new webpack.optimize.CommonsChunkPlugin('common')
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue