Note that there are some explanatory texts on larger screens.

plurals
  1. POSource maps with grunt
    primarykey
    data
    text
    <p>Do you know of a workflow that includes source maps for an app compiled with grunt?</p> <p>I am well aware of plugins like <code>uglifyjs</code> that allow you to simply generate a source map. But I'm looking for incorporating this into a more complex workflow, rather than just making a one-off source map.</p> <p>I've noticed that the most popular Yeoman generators (that I know of) are missing source maps in their workflows. Is this just because of a lack of support in the major plugins for source maps? Or is it instead that source maps aren't necessary in work flows, and I just can't think of a clever enough alternative?</p> <p>Notable sources of trouble with popular grunt plugins that I've run into include:</p> <p><code>uglify</code> being <a href="https://github.com/gruntjs/grunt-contrib-uglify/issues/39">unable to handle even the most basic of project structures</a> without a <a href="https://github.com/gruntjs/grunt-contrib-uglify/issues/39#issuecomment-14856100">hacky fix</a>.</p> <p><code>usemin</code> also being <a href="https://github.com/yeoman/grunt-usemin/issues/30#issuecomment-27454273">unable to handle source maps</a> beyond the simplest of configurations, in that it can really only support one per project (but still requires a hack to correct it). A possible solution is obviously to stop using <code>usemin</code> altogether, but then you lose out on all of the benefits of it, like pairing it with <code>rev</code>, <code>watch</code>, and <code>connect</code>.</p> <p>I'm thinking that my best course of action might be testing with un-concatenated/not-minified sources when I'm testing my app. This is, of course, less than ideal, as I'd like my test environment to mirror the production one as best as possible.</p> <p>Do you use source maps in your grunt project? How do you do it? If not, how do you get around the lack of support for them?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload