Commit d65faed9 authored by f's avatar f
Browse files

configuración de webpack para sourcemaps

increíblemente estuve 10 horas buscando por qué los sourcemaps se
generaban sin código.  al final era porque el output de webpack no puede
contener partes de la ruta, solo el nombre del archivo.
parent 968f3950
......@@ -4,10 +4,12 @@ module.exports = {
plugins: [
new Dotenv()
],
entry: './_packs/entry.js',
entry: {
'assets/js/pack': './_packs/entry.js',
},
output: {
path: __dirname,
filename: './assets/js/pack.js'
filename: '[name].js'
},
mode: 'development',
devtool: 'inline-source-map',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment