File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 11Package . describe ( {
22 name : 'akryum:vue-sass' ,
3- version : '0.0.5 ' ,
3+ version : '0.0.6 ' ,
44 summary : 'Add sass and scss support for vue components' ,
55 git : 'https://github.com/Akryum/meteor-vue-component' ,
66 documentation : 'README.md'
Original file line number Diff line number Diff line change @@ -4,19 +4,16 @@ global.vue.lang = global.vue.lang || {}
44import path from 'path' ;
55import fs from 'fs' ;
66import sass from 'node-sass' ;
7- import { Meteor } from 'meteor/meteor' ;
8- import meteorProjectPath from 'meteor-project-path' ;
7+ import { Meteor } from 'meteor/meteor' ;
98
109function resolveImport ( dependencyManager ) {
1110 return function ( url , prev , done ) {
1211 let resolvedFilename ;
1312 url = url . replace ( / ^ [ " ' ] ? ( .* ?) [ " ' ] ? $ / , '$1' ) ;
14- if ( url . indexOf ( '~' ) === 0 ) {
13+ if ( url . indexOf ( '~' ) === 0 || url . indexOf ( '/' ) === 0 ) {
1514 resolvedFilename = url . substr ( 1 ) ;
1615 /*} else if (url.indexOf('{') === 0) {
1716 resolvedFilename = decodeFilePath(url);*/
18- } else if ( url . indexOf ( '/' ) === 0 ) {
19- resolvedFilename = meteorProjectPath + url ;
2017 } else {
2118 let currentDirectory = path . dirname ( this . options . outFile ) ;
2219 resolvedFilename = path . resolve ( currentDirectory , url ) ;
You can’t perform that action at this time.
0 commit comments