-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix styleInject path on windows (#81)
* fix styleInject path on windows * fix lint * refactor tests * tweaks * try bare hash * remove hash from names in tests * normalize path in sourcemap * fix typo * tweaks * tweaks
- Loading branch information
Showing
7 changed files
with
418 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import path from 'path' | ||
|
||
const humanlizePath = filepath => path.relative(process.cwd(), | ||
filepath) | ||
|
||
export default humanlizePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
import path from 'path' | ||
|
||
const normalizePath = filepath => path.relative(process.cwd(), | ||
filepath) | ||
|
||
export default normalizePath | ||
export default path => path && path.replace(/\\+/g, '/') |
Oops, something went wrong.