burguillos.info/webpack.config.js
2023-08-21 00:58:11 +02:00

29 lines
642 B
JavaScript

const path = require('path')
module.exports = {
entry: './js-src/index.js',
mode: 'development',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'public/js/')
},
resolve: {
extensions: ['.js', '.ts'],
roots: [
path.resolve(__dirname, 'js-src/')
],
alias: {
'@burguillosinfo': path.resolve(__dirname, 'js-src')
}
},
module: {
rules: [
{
test: /\.jpe?g|png$/,
exclude: /node_modules/,
use: ['url-loader', 'file-loader']
}
]
}
}