-
Notifications
You must be signed in to change notification settings - Fork 27
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: truedestroys source map now (will be implemented in future versions)
See CLI for details