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.
This commit is contained in:
parent
968f39501b
commit
d65faed9e6
1 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue