sutty-base-jekyll-theme/webpack.config.js

35 lines
642 B
JavaScript
Raw Normal View History

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()
],
entry: {
'assets/js/pack': './_packs/entry.js',
},
2020-11-12 16:28:24 +00:00
output: {
path: __dirname,
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']
}
}
}
]
}
};