Skip to content

option to ignore sourceMappingUrl and also absolute urls to dev servers. #13

Closed
@cjm771

Description

@cjm771

Currently this plugin is either ripping out or replacing my sourceMappingUrl comments. I have these generated from a seperate webpack config. currently there is no way to say 'do nothing' .

additionally it would be nice to specify absolute path urls similar to how 'sourceMapDevTool' plugin works in webpack.here you can specify a url (for us a dev only server) and a path resolution from the config to create a url. that way you can have sourcemaps that point to a dev only server.

Example of this could be:

    postcss: {
      options: {
        map: {
          ignoreUrls: 'http://mydev.local:8000/bundledCSS/*', //ignore existing maps if match wildcard..these are done by another build process
          publicPath: 'http://mydev.local:8000/css/', //specify abs url relative to where css file is (same as sourceMapDevTool)
          file: '[file].map' //name of map file  (same as sourceMapDevTool)
        }
    }
         

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions