reactjs-chatapp
Version:
Most popular chat component for react!
30 lines (28 loc) • 636 B
JavaScript
var path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'index.js',
libraryTarget: 'commonjs2'
},
devServer: {
inline: true,
port: 7777
},
module: {
loaders: [
{
test: /\.js?/,
exclude: [/node_modules/, /socket.io/ ,/build/] ,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}
]
},
externals: {
'react': 'commonjs react' // this line is just to use the React dependency of our parent-testing-project instead of using our own React.
}
};