Skip to content

Commit

Permalink
Merge pull request #46 in CONCORDIA/concorel-frontend from bugfix/SCS…
Browse files Browse the repository at this point in the history
…S-dependecy-tree to develop

* commit 'c3c7359f850491c0d95c4dd73f68b006025e3ac3':
  fix - SCSS dependency tree construction
  • Loading branch information
Marcin Borowski committed Feb 21, 2017
2 parents d049565 + c3c7359 commit 80b2056
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions gulp/css/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ var taskName = 'css',

// Create dependency graph of currently piped file
var dependencyGraph = new helpers.dependencygraph(file.path, {
pattern: /@import "(.*?)"/g,
resolvePath: function(match) {
var resolvedPath = path.resolve('./source/assets/css', match + '.scss'),
pattern: /@import ["'](.*?)["']/g,
resolvePath: function(match, filePath) {
var resolvedPath = path.resolve(path.dirname(filePath), match + '.scss'),
prefixedResolvedPath;

// Retry with leading underscore if not found
Expand Down
2 changes: 1 addition & 1 deletion source/modules/locationsearch/locationsearch.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "./../../node_modules/selectize/dist/css/selectize";
@import "../../../node_modules/selectize/dist/css/selectize";

.selectize-control.location-search {
$padding: 11px;
Expand Down
12 changes: 6 additions & 6 deletions source/preview/assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@import "../.tmp/colors";
@import "globals/variables";
@import "globals/functions";
@import "globals/mixins";
@import "globals/mediaqueries";
@import "../../../assets/.tmp/colors";
@import "../../../assets/css/globals/variables";
@import "../../../assets/css/globals/functions";
@import "../../../assets/css/globals/mixins";
@import "../../../assets/css/globals/mediaqueries";

@import "../../../node_modules/highlight.js/styles/github";
@import "../../../../node_modules/highlight.js/styles/github";



Expand Down

0 comments on commit 80b2056

Please sign in to comment.