gpl-compliance-1/webpack.config.js
2023-01-29 19:59:45 -05:00

31 lines
450 B
JavaScript

const path = require("path");
module.exports = {
entry: "./src/index.js",
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [
[
'@babel/preset-env'
]
]
}
}
}
]
},
mode: "production"
}