lennythedev

Prettifying webpack output in your Dev Tools

If your dev tools source code looks like this, you need source maps!

BEFORE:

2019 07 31 21 40 31

const config = {
	entry: './src/index.js',
	output: {...}
	devtool: 'cheap-module-eval-source-map', // <-----------------

any of the values here: https://webpack.js.org/configuration/devtool/

cheap-module-eval-source-map gives the original source but cheaper

AFTER:

2019 07 31 21 42 24


lenmorld
Full-stack ramblings and journal about anything web