culinary.kemonine.info/themes/hugo-theme-techdoc/webpack.config.js

23 lines
433 B
JavaScript
Raw Normal View History

2022-12-03 15:27:03 +00:00
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']
}
}
}
],
},
};