-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #2043 #2056
Closes #2043 #2056
Conversation
One more thing, for Meteor developers, it's better to add uncompressed assets in packages due two things:
So I take the freedom to replace |
+1 |
2 similar comments
+1 |
+1 |
+1 |
@grsabreu while at it, would you mind also updating // Check if we are post Meteor@1.2 with which api.addFiles() throws error requiring api.addAssets()
var assetDirective = api.addAssets === undefined ? 'addFiles' : 'addAssets';
// Add material design icons
api[assetDirective]([
'dist/font/material-design-icons/Material-Design-Icons.eot',
'dist/font/material-design-icons/Material-Design-Icons.svg',
'dist/font/material-design-icons/Material-Design-Icons.ttf',
'dist/font/material-design-icons/Material-Design-Icons.woff',
'dist/font/material-design-icons/Material-Design-Icons.woff2'
], 'client');
// Add roboto bold font
api[assetDirective]([
'dist/font/roboto/Roboto-Bold.ttf',
'dist/font/roboto/Roboto-Bold.woff',
'dist/font/roboto/Roboto-Bold.woff2'
], 'client');
// Add roboto light font
api[assetDirective]([
'dist/font/roboto/Roboto-Light.ttf',
'dist/font/roboto/Roboto-Light.woff',
'dist/font/roboto/Roboto-Light.woff2'
], 'client');
// Add roboto medium font
api[assetDirective]([
'dist/font/roboto/Roboto-Medium.ttf',
'dist/font/roboto/Roboto-Medium.woff',
'dist/font/roboto/Roboto-Medium.woff2'
], 'client');
// Add roboto regular font
api[assetDirective]([
'dist/font/roboto/Roboto-Regular.ttf',
'dist/font/roboto/Roboto-Regular.woff',
'dist/font/roboto/Roboto-Regular.woff2'
], 'client');
// Add roboto thin font
api[assetDirective]([
'dist/font/roboto/Roboto-Thin.ttf',
'dist/font/roboto/Roboto-Thin.woff',
'dist/font/roboto/Roboto-Thin.woff2'
], 'client');
// Add css and javascript
api.addFiles([
'dist/css/materialize.css',
'dist/js/materialize.js'
], 'client'); |
@serkandurusoy fakenickels@add48e4 |
Hah, I had not realised you've already done it, and even more properly :) |
:+1 |
👍 |
+1 @Dogfalo can we merge it? |
👍 |
} else { | ||
api.addFiles(assets, 'client', {isAsset: true}); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line? :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it's true! I'll add one!
Yes, the package should include the _un_minified |
Thank you everyone for finding out the problem. I do not do much meteor development and so I am grateful for your help. |
Nice one, @Dogfalo! |
If you want to grab updates before release you can see what I wrote here to use a github repo as a meteor package #2171 |
+1 for new release to be rolled to Atmosphere. |
+1 |
You can not define Materialize with window.Materialize because Meteor package export won't be able to export the variable.
Tell me if I have to do some changes before merging :).