sass不导入部分? Gulp显示错误,不确定它是什么?

时间:2017-08-04 14:17:48

标签: twitter-bootstrap sass gulp partials gulp-sass

gulp错误

function GoogleDistanceService() {
    var map;
    var directionDisplay;
    var distanceOption;
    var directionsService = new google.maps.DirectionsService();

    return {
        "initializeLoad": function (mapContext) {
            directionDisplay = new google.maps.DirectionsRenderer();
            var chicago = new google.maps.LatLng(35.220033, -50.5500100);
            var mapOptions = {
                zoom: 6,
                center: newyork
            };
            map = new google.maps.Map(mapContext, mapOptions);
            directionDisplay.setMap(map);

            ////////////////// here put code to hide your map div 

        },
        "callBack": function (response, status) {
            var distance = "";
            if (status != google.maps.DistanceMatrixStatus.OK) {
                distanceOption.errorCallBack(null);
            }
            else {
                var origins = response.originAddresses;
                var destinations = response.destinationAddresses;

        /////////// here show your map div

                for (var i = 0; i < origins.length; i++) {
                    var results = response.rows[i].elements;
                    for (var j = 0; j < results.length; j++) {
                        distance = results[j].distance.text.replace(" km", "") * 0.62137;
                    } 
                } 
            } 
            distanceOption.updatedCallBack({ "start": distanceOption.start, "end": distanceOption.end, "distance": distance });
        },
        "MapLoad": function (option) {
            distanceOption = option;
            this.initializeLoad(option.mapContext);
            var service = new google.maps.DistanceMatrixService();
            var request = { origin: option.start, destination: option.end, travelMode: google.maps.TravelMode.DRIVING };

            directionsService.route(request, function (response, status) {
                if (status == google.maps.DirectionsStatus.OK) {
                    directionDisplay.setDirections(response);
                }
            });

            service.getDistanceMatrix({
                origins: [option.start],
                destinations: [option.end],
                travelMode: google.maps.TravelMode.DRIVING,
                unitSystem: google.maps.UnitSystem.METRIC,
                avoidHighways: false,
                avoidTolls: false
            }, this.callBack);
        }
    };    
};

scss代码

 scss\style.scss: line 1, col 1, Unexpected '@'.  
scss\style.scss: line 3, col 1  , Unexpected '@'.
 scss\style.scss: line 4, col 1, Unexpected '@'.
  scss\style.scss: line 5, col 1, Unexpected '@'

所以它基本上编译了bootstrap文件,但不编译自定义部分文件。无法弄清楚原因。

@import "partials/custom-variables";

@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap";
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap-compass";
@import "../bower_components/font-awesome/scss/font-awesome";

我不能发布这个没有一些文字所以这是一些胡言乱语ugyhgjg ghchgchgv gvgughvi jtvigcyi jgjvjgchgxchg

0 个答案:

没有答案