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()
|
|
|
|
],
|
2021-03-22 15:19:32 +00:00
|
|
|
entry: {
|
|
|
|
'assets/js/pack': './_packs/entry.js',
|
|
|
|
},
|
2020-11-12 16:28:24 +00:00
|
|
|
output: {
|
|
|
|
path: __dirname,
|
2021-03-22 15:19:32 +00:00
|
|
|
filename: '[name].js'
|
2020-11-12 16:28:24 +00:00
|
|
|
},
|
|
|
|
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']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|