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

Unclear how to turn off sourcemaps in development #1199

Closed
brooksco opened this issue Jan 21, 2018 · 1 comment
Closed

Unclear how to turn off sourcemaps in development #1199

brooksco opened this issue Jan 21, 2018 · 1 comment

Comments

@brooksco
Copy link

brooksco commented Jan 21, 2018

I can't figure out what or where I need to change the webpacker setup to avoid compiling sourcemaps, following the webpack docs here for devtool https://webpack.js.org/configuration/devtool/.

Setting it in environments.js like:

environments.devtool = 'eval'

Doesn't appear to work, neither does adding a devtool: 'eval' in the webpacker.yml file under say, the development section. Is there a proper way to to adjust sourcemap generation with Webpacker?

I've read through #769, and it seems like what I've done above should turn off sourcemaps, but nothing appears to different whether or not I add the devtool line to environments.js.

@gauravtiwari
Copy link
Member

@brooksco This setting is environment specific so if you don't need sourcemaps in development please set it in config/webpack/development.js (same as Rails application.rb and environments/** override)

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

2 participants