Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 669 Bytes

sourcemaps.rst

File metadata and controls

23 lines (16 loc) · 669 Bytes

Enabling Source Maps

Source maps allow browsers to access the original code related to some asset (e.g. the Sass code that was compiled to CSS or the TypeScript code that was compiled to JavaScript). Source maps are useful for debugging purposes but unnecessary when executing the application in production.

Encore's default webpack.config.js file enables source maps in the dev build:

// webpack.config.js
// ...

Encore
    // ...

    .enableSourceMaps(!Encore.isProduction())
;