Answer the question
In order to leave comments, you need to log in
Gulp does not compile less files connected via @import, how to fix?
I connect additional files through @import("filename")
in the brick.less file.
Like this:
@import "../blocks/simple.less";
@import "../blocks/header.less";
@import "../blocks/slider.less";
@import "../blocks/offer.less";
@import "../blocks/block-grid-menu-4x4.less";
@import "../blocks/block-share.less";
@import "../blocks/block-smit-numbers.less";
@import "../blocks/block-two-line-carts.less";
@import "../blocks/block-only-smit.less";
@import "../blocks/block-two-big-column.less";
@import "../blocks/block-brands-products.less";
@import "../blocks/block-video-help.less";
@import "../blocks/block-swiper-carts.less";
@import "../blocks/block-line-services.less";
@import "../blocks/block-products.less";
@import "../blocks/product_cart_modal.less";
@import "../blocks/recall.less";
@import "../blocks/footer.less";
@import "../blocks/product_cart_modal.less";
@import "../blocks/device.less";
gulp.task('brick:watch', function(){
watch("./src/less/blocks/**/*.less", function(event, cb) {
gulp.start(['less']);
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question