2023-05-07 03:09:36 +02:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
2023-08-21 00:58:11 +02:00
|
|
|
entry: './js-src/index.js',
|
2023-05-07 03:09:36 +02:00
|
|
|
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']
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|