socket.on('server-update', function(server) {
// do something with the updated server info
// maybe dispatch a thunk action?
});
right now i have things like ...
socket.on('connected', function () {
// dispatch(socket.connected(socketId)
// console.log('connected to backend')
});
socket.on('disconnected', function () {
// dispatch(socket.connected(socketId)
// console.log('connected to backend')
});
in my store/socket.js
file and i call socket.connect()
in my appcontainer.js onMount()
socket.emit('channelname', { // some data })
I already have it like below
webpackConfig.postcss = [
cssnano({
autoprefixer: {
add: true,
remove: true,
browsers: ['> 1%']
},
discardComments: {
removeAll: true
},
discardUnused: false,
mergeIdents: false,
reduceIdents: false,
safe: true,
sourcemap: true
})
]
how do I add cssnext?
I am basically trying to transpile all cssnext syntax like var(--something)
into standard CSS