2021-01-12 17:14:14 +00:00
|
|
|
const Dotenv = require('dotenv-webpack');
|
|
|
|
|
2020-11-12 16:28:24 +00:00
|
|
|
module.exports = {
|
2021-01-12 17:14:14 +00:00
|
|
|
plugins: [
|
|
|
|
new Dotenv()
|
|
|
|
],
|
2020-11-12 16:28:24 +00:00
|
|
|
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']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|