Skip to content

Commit

Permalink
Generate correct style sheet import statements during react-core build
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoStaudinger committed Jan 28, 2019
1 parent 240f25c commit b63f8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/patternfly-4/react-styles/src/build/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function writeCSSJSFile(rootPath, originalPath, destinationPath, contents

export function getRelativeImportPath(from, to) {
const parsedTo = path.parse(to);
const newImportPath = path.normalize(path.join(relative(from, parsedTo.dir), parsedTo.base).replace(/\\/g, ''));
const newImportPath = path.normalize(path.join(relative(from, parsedTo.dir), parsedTo.base));
return newImportPath.startsWith('.') ? newImportPath : `./${newImportPath}`;
}

Expand Down

0 comments on commit b63f8c0

Please sign in to comment.