dchadwick/web/modules/custom/ufc/webpack.config.js

29 lines
508 B
JavaScript
Raw Normal View History

2024-04-09 01:47:04 +00:00
const path = require('path');
const config = {
entry: {
main: ["./js/src/index.jsx"]
},
devtool:'source-map',
mode:'development',
output: {
path: path.resolve(__dirname, "js/dist"),
filename: '[name].min.js'
},
resolve: {
extensions: ['.js', '.jsx'],
},
module: {
rules: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
include: path.join(__dirname, 'js/src'),
}
],
},
};
module.exports = config;