Skip to content

Conversation

@mastilver
Copy link
Contributor

closes #60

@mastilver mastilver added this to the v2.x milestone Sep 1, 2017
@codecov-io
Copy link

codecov-io commented Sep 1, 2017

Codecov Report

Merging #78 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #78      +/-   ##
==========================================
+ Coverage   98.57%   98.64%   +0.07%     
==========================================
  Files           2        2              
  Lines          70       74       +4     
==========================================
+ Hits           69       73       +4     
  Misses          1        1
Impacted Files Coverage Δ
lib/plugin.js 98.63% <100%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de15a87...1adf3ef. Read the comment docs.

lib/plugin.js Outdated

files = files.map(file => {
file.name = file.name.replace('\\', '/');
file.path = file.path.replace('\\', '/');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'\\' is equivalent /\//
but /\//g expected

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'sdfds\\sdfsdf\\'.replace('\\', '/') // -> "sdfds/sdfsdf\"
'sdfds\\sdfsdf\\'.replace(/\\/, '/') // -> "sdfds/sdfsdf\"
'sdfds\\sdfsdf\\'.replace(/\\/g, '/') // -> "sdfds/sdfsdf/"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

webpackCompile({
context: __dirname,
entry: {
'dir\\main': './fixtures/file.js'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add some\\dir\\main also

@mastilver
Copy link
Contributor Author

@a-x- fixed the issue you spotted :)

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.

Option to map entries or normalize paths on both Windows and OSX/Linux

4 participants