mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This makes it consistent with non-lazy css resources, which were always being passed to the minifier.
27 lines
750 B
JavaScript
27 lines
750 B
JavaScript
if (Meteor.isClient) {
|
|
require('./imports/imported.css');
|
|
|
|
Meteor.startup(function () {
|
|
['production_css', 'development_css', 'minified_lazy'].forEach(cls => {
|
|
var color = getComputedStyle(document.querySelectorAll('.' + cls)[0]).color;
|
|
Meteor.call('print', cls + ': ' + color);
|
|
});
|
|
|
|
// this log is expected to be transformed by minifier
|
|
Meteor.call('print', 'Message (client): foo');
|
|
});
|
|
} else {
|
|
Meteor.startup(function () {
|
|
// since we don't run minifiers for server targets, this is going
|
|
// to be printed as "foo" and not as "production_js" or
|
|
// "development_js"
|
|
console.log('Message: foo');
|
|
});
|
|
|
|
Meteor.methods({
|
|
print: function (message) {
|
|
console.log(message);
|
|
}
|
|
});
|
|
}
|