Private
Public Access
1
0

add new websocket topic - userList - and handle it

This commit is contained in:
2017-01-22 15:21:45 +01:00
parent a91172ef7a
commit a3465f6cf9
18 changed files with 680 additions and 83 deletions

View File

@@ -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,
];