This repository was archived by the owner on Jan 22, 2021. It is now read-only.
File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,20 @@ Utils = {
147
147
148
148
// Take a path to a SCSS file and compiles it to CSS with `node-sass`.
149
149
toCSS : function ( scss ) {
150
- if ( ! Package [ 'chrisbutler:node-sass' ] ) {
150
+ let sass ;
151
+ let meteorMinorVersionPosition = 1 ;
152
+ let minorVersion = Meteor . release . split ( '.' ) [ meteorMinorVersionPosition ] ;
153
+ // since meteor 1.3 we no longer need meteor hacks just use the npm version
154
+ if ( minorVersion >= 3 ) {
155
+ sass = require ( 'node-sass' ) ;
156
+ } else if ( ! Package [ 'chrisbutler:node-sass' ] ) {
157
+ sass = Package [ 'chrisbutler:node-sass' ] . sass ;
158
+ } else {
151
159
Utils . Logger . warn ( 'Sass support is opt-in since lookback:[email protected] . Please add chrisbutler:node-sass from Atmosphere and try again.' , TAG ) ;
152
160
return Utils . readFile ( scss ) ;
153
161
}
154
162
155
163
const file = path . join ( ROOT , scss ) ;
156
- const sass = Package [ 'chrisbutler:node-sass' ] . sass ;
157
164
158
165
try {
159
166
return sass . renderSync ( {
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ var where = 'server';
4
4
Package . describe ( {
5
5
name : 'lookback:emails' ,
6
6
summary : 'Send HTML emails with server side Blaze templates. Preview and debug in the browser.' ,
7
- version : '0.7.4 ' ,
7
+ version : '0.7.5 ' ,
8
8
git : 'https://github.com/lookback/meteor-emails.git'
9
9
} ) ;
10
10
11
11
Npm . depends ( {
12
- 'html-to-text' : '1.3.0'
12
+ 'html-to-text' : '1.3.0' ,
13
+ 'node-sass' : '3.8.0'
13
14
} ) ;
14
15
15
16
Package . onUse ( function ( api ) {
You can’t perform that action at this time.
0 commit comments