mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-16 17:35:06 +01:00
webpack config + babel-loader
This commit is contained in:
parent
e4faf54804
commit
ca29e3dd29
5 changed files with 76 additions and 8 deletions
24
webpack.config.js
Normal file
24
webpack.config.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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' ],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue