Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module.exports = {
name: 'ember-normalize',

treeForStyles: function() {
var normalizePath = path.join(this.project.nodeModulesPath, 'normalize.css');
var normalizeTree = new Funnel(this.treeGenerator(normalizePath), {
srcDir: '/',
destDir: '/app/styles'
var normalizeModulePath = path.dirname(this.project.resolveSync('normalize.css'));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@webark resolveSync is a private method on project. require.resolve should work, no?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably.. i just started doing an import statement and dropped this addon, which should be the preferred method going forward.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@webark I just did the same :D

var normalizeTree = new Funnel(this.treeGenerator(normalizeModulePath), {
destDir: 'app/styles',
include: ['normalize.css']
});

return normalizeTree;
Expand Down