add new websocket topic - userList - and handle it
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const config = module.exports = {
|
||||
const config = {
|
||||
module: {}
|
||||
};
|
||||
|
||||
let mineSeekerConfig = Object.assign({}, config, {
|
||||
entry: './web/bundles/mineseeker/js/mine-seeker.js',
|
||||
output: {
|
||||
path: './src/Mine/SeekerBundle/Resources/public/js',
|
||||
path: './src/Mine/SeekerBundle/Resources/public/js/build/mine-seeker/',
|
||||
filename: 'index.js'
|
||||
},
|
||||
module: {
|
||||
@@ -18,6 +22,29 @@ const config = module.exports = {
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
module.exports = config;
|
||||
let mineUserListConfig = Object.assign({}, config, {
|
||||
entry: './web/bundles/mineseeker/js/mine-user-list.js',
|
||||
output: {
|
||||
path: './src/Mine/SeekerBundle/Resources/public/js/build/mine-user-list/',
|
||||
filename: 'index.js'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel',
|
||||
query: {
|
||||
presets: ['es2015', 'react']
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = [
|
||||
mineSeekerConfig,
|
||||
mineUserListConfig,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user