2020-03-31 13:23:51 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: 'production',
|
2020-04-08 11:46:46 +02:00
|
|
|
entry: ['./js/index.js'],
|
2020-03-31 13:23:51 +02:00
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, '/dist'),
|
|
|
|
filename: 'reveal.min.js',
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /(node_modules)/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
query: {
|
|
|
|
presets: [
|
2020-04-08 11:46:46 +02:00
|
|
|
[ '@babel/preset-env' ]
|
|
|
|
]
|
2020-04-06 10:39:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2020-03-31 13:23:51 +02:00
|
|
|
};
|