Skip to content

Commit 0d78958

Browse files
committed
fix: ember-component-css compatibility
However, this is blocked by: webark/ember-component-css#75
1 parent 2cae374 commit 0d78958

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/styles-reloader.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module.exports = function StylesReloader(options){
1818

1919
// build app style pattern
2020
var appStylePath = options.project.root + path.join('/app', 'styles', '*');
21-
var appStylePattern = new RegExp('^' + appStylePath);
21+
var componentsStylePath = options.project.root + path.join('/app', 'components', '*');
22+
var appStylePattern = new RegExp('^(' + appStylePath + '|' + componentsStylePath + ')');
2223
var appStyleResource = options.project.pkg.name + '.css';
2324

2425
// livereload hostname
@@ -78,4 +79,4 @@ module.exports = function StylesReloader(options){
7879
return _isRunning;
7980
}
8081
};
81-
};
82+
};

0 commit comments

Comments
 (0)