From cc61d302664608f7b3ccd2e15254db945cdac798 Mon Sep 17 00:00:00 2001 From: David Darrell Date: Tue, 9 Apr 2019 07:19:20 +0800 Subject: [PATCH] Add inline source maps to JavaScript files Resolves #10 --- webpack.mix.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack.mix.js b/webpack.mix.js index 46757a6..d9eb477 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -15,6 +15,14 @@ const tailwindcss = require('tailwindcss') | */ +// Provide inline source maps. +if ( ! mix.inProduction()) { + mix.webpackConfig({ + devtool: 'inline-source-map', + }) + .sourceMaps() +} + mix.js('resources/js/app.js', 'public/js') .postCss('resources/css/app.css', 'public/css', [ cssImport(),