Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cjm771 opened this issue Jul 2, 2019 · 3 comments
Closed

Comments

@cjm771
Copy link

cjm771 commented Jul 2, 2019

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)
        }
    }
         
@cjm771
Copy link
Author

cjm771 commented Jul 2, 2019

Update: I guess I can do ignore with {dist: {src: '!path/to/ignore/'}} but the absolute url would be amazing thanks.

@C-Lodder
Copy link
Owner

C-Lodder commented Jul 3, 2019

In regards to the sourceMappingUrl comments, try:

map: {
  annotation: false
}

@C-Lodder
Copy link
Owner

Absolute URL's added #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants