fa23-si/webpack.config.js
2020-04-06 10:39:48 +02:00

24 lines
430 B
JavaScript

const path = require('path');
module.exports = {
mode: 'production',
entry: ["./js/index.js"],
output: {
path: path.join(__dirname, '/dist'),
filename: 'reveal.min.js',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
query: {
presets: [
[ '@babel/preset-env' ],
],
}
}
]
}
};