Code Monkey home page Code Monkey logo

Comments (3)

jtangelder avatar jtangelder commented on June 9, 2024

Relative paths to the src would be a better idea i guess
tested it by editing the map file.

{"version":3,"file":"explorer.js", "sources":["../explorer.js", "../explorer.list.js"] }

from grunt-jsmin-sourcemap.

twolfson avatar twolfson commented on June 9, 2024

While this is in agreement with the sourcemap spec, I would like to make this repo as customizable as possible. By that, I mean if someone wants to host 'project/myproject/dist' at 'aaa/aaa/aaa', they should be allowed to.

As a result, I make an attempt to make the default configuration as simple as possible.

All of that being said, I have actually had requests for similar cases in the past and solved them via the source-map native sourceRoot property as well as a cwd edit for users to hook onto. These should suffice for your project, I believe the following will work for your config

{
  'jsmin-sourcemap': {
    explorer: {
      src: ['explorer.js', 'explorer.*.js'],
      dest: 'dist/explorer.js',
      cwd: 'project/myproject/static/js'
  }
}

from grunt-jsmin-sourcemap.

twolfson avatar twolfson commented on June 9, 2024

Closing issue due to inactivity and lack of counter-argument to sourceRoot + cwd solution. If we want a better/more proper solution, I would prefer a router argument comparable to that found in grunt-curl.

from grunt-jsmin-sourcemap.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.