Skip to content

SourceMap

i4got10 edited this page Dec 22, 2014 · 3 revisions

LMD can generate source map for your modules.

Example

First add this parameters to your module config

    "sourcemap": "../index.lmd.map",
    "sourcemap_inline": true,
    "sourcemap_www": "",
    "sourcemap_url": "/index.lmd.map", // Specifies sourceMappingURL path

    "www_root": "../../../",

Than build your package lmd build your_package.

You can skip all thet extra options and add them to the CLI comand:

lmd build your_package --sourcemap ../index.lmd.map --sourcemap_inline --sourcemap_www="" --www_root ../../../

All paths are relative to the config file.

Notes

  • Shortcuts, modules under Code Coverage and Lazy modules can not be under Source Map now (will be implemented in future versions)
  • pack: true destroys source map now (will be implemented in future versions)

See CLI for details

Something went wrong with that request. Please try again.