Skip to content

Commit

Permalink
Merge pull request #336 from codaco/fix/windows-build
Browse files Browse the repository at this point in the history
Fix build config for Windows
  • Loading branch information
bryfox committed Nov 20, 2018
2 parents 6a8c3b6 + 25b9a46 commit be82880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ const getStyleLoaders = (preProcessor) => {
* If file exists in the Network Canvas submodule, update path to
* resolve there relatively from Architect.
*/
const ncPath = path.resolve(`src/network-canvas/src/styles/${url}`);
const ncUrl = path.normalize(`../network-canvas/src/styles/${url}`);
const ncPath = path.resolve('src', 'network-canvas', 'src', 'styles', url);
const ncCSSPath = `../network-canvas/src/styles/${url}`;

try {
fs.accessSync(ncPath, fs.constants.R_OK);
return ncUrl;
return ncCSSPath;
} catch (err) {
return url;
}
Expand Down

0 comments on commit be82880

Please sign in to comment.