Merge pull request #11 from incon/patch-2

Add inline source maps to JavaScript files
This commit is contained in:
Jonathan Reinink 2019-04-22 11:19:51 -04:00 committed by GitHub
commit aa3ec42b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

8
webpack.mix.js vendored
View File

@ -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(),