culinary.kemonine.info/themes/hugo-theme-techdoc/webpack.config.js
2022-12-03 10:27:03 -05:00

23 lines
433 B
JavaScript

module.exports = {
mode: "production",
entry: './src/js/main.js',
output: {
filename: '../static/js/bundle.js',
},
module: {
rules: [
{
test: /.jsx?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-runtime']
}
}
}
],
},
};