Merge pull request #11 from incon/patch-2
Add inline source maps to JavaScript files
This commit is contained in:
commit
aa3ec42b85
|
@ -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')
|
mix.js('resources/js/app.js', 'public/js')
|
||||||
.postCss('resources/css/app.css', 'public/css', [
|
.postCss('resources/css/app.css', 'public/css', [
|
||||||
cssImport(),
|
cssImport(),
|
||||||
|
|
Loading…
Reference in New Issue