Add inline source maps to JavaScript files

Resolves #10
This commit is contained in:
David Darrell 2019-04-09 07:19:20 +08:00 committed by GitHub
parent e6d23d59da
commit cc61d30266
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(),