Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemaps off/on #223

Closed
FDiskas opened this issue Jan 29, 2017 · 2 comments
Closed

Sourcemaps off/on #223

FDiskas opened this issue Jan 29, 2017 · 2 comments

Comments

@FDiskas
Copy link

FDiskas commented Jan 29, 2017

Source-maps should be available only in development. On productions it should be removed.
So I suggest respect the ENV

mix
  .js('resources/assets/js/app.js', 'public/js')
  .sourceMaps(!mix.inProduction)
@JeffreyWay
Copy link
Collaborator

Thanks! It'll disable them automatically behind the scenes now.

@growlead
Copy link

growlead commented Jul 9, 2020

mix.inProduction - FUNCTION

mix
.js('resources/assets/js/app.js', 'public/js')
.sourceMaps(!mix.inProduction())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants