Skip to content

preserve source map after replacement#13

Merged
jamesandersen merged 2 commits intojamesandersen:masterfrom
rnons:patch-2
Mar 7, 2017
Merged

preserve source map after replacement#13
jamesandersen merged 2 commits intojamesandersen:masterfrom
rnons:patch-2

Conversation

@rnons
Copy link

@rnons rnons commented May 17, 2016

I use string-replace-webpack-plugin together with extract-text-webpack-plugin for CSS in this way:

loader: StringReplacePlugin.replace(
  ExtractTextPlugin.extract('css-loader?sourceMap'), {
    replacements: [...]
  }, 'stylus-loader?sourceMap')

The sourcemap generated by stylus-loader disappears after replacement.

Or perhaps there are other ways to use these two plugins together?

@jamesandersen jamesandersen self-assigned this Oct 7, 2016
@jamesandersen
Copy link
Owner

@rnons it looks like a couple of the unit tests are failing with this change

@rnons
Copy link
Author

rnons commented Oct 9, 2016

@jamesandersen Added a commit, tests pass now.

@jamesandersen jamesandersen merged commit 04a47c8 into jamesandersen:master Mar 7, 2017
@rnons rnons deleted the patch-2 branch March 7, 2017 04:24
@jamesandersen
Copy link
Owner

@rnons no good excuses... I'm sorry for the huge delay; just lost track of this. Just merged in and published an update to NPM.

@rnons
Copy link
Author

rnons commented Mar 7, 2017

@jamesandersen no worry. Thanks for your project.

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

Successfully merging this pull request may close these issues.

2 participants