const Dotenv = require('dotenv-webpack'); module.exports = { plugins: [ new Dotenv() ], entry: './_packs/entry.js', output: { path: __dirname, filename: './assets/js/pack.js' }, mode: 'development', devtool: 'inline-source-map', devServer: { port: 9095 }, module: { rules: [ { test: /\.m?js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'], plugins: ['@babel/plugin-proposal-class-properties'] } } } ] } };