entry: {
'build': path.join(__dirname, '/src/index.js'),
},
output: {
filename: 'build.js',
publicPath: '/',
path: path.join(__dirname, '/dist')
},
module: {
rules: [{
test: /\.js$/,
include: [
path.resolve(__dirname, "src"),
path.resolve(__dirname, "node_modules/chatjs"),
],
use: {
loader: 'babel-loader'
}
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.(jpg|png|gif|mp4|mp3|svg)$/,
use: {
loader: "url-loader",
options: {
limit: 1,
name: '[name].[ext]',
},
},
},
]
},