From d65faed9e602a77659be785950c7bce9ca690482 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 22 Mar 2021 12:19:32 -0300 Subject: [PATCH] =?UTF-8?q?configuraci=C3=B3n=20de=20webpack=20para=20sour?= =?UTF-8?q?cemaps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- webpack.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 7213c55..e623806 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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',