Compile less files with grunt-contrib-less won't work

前端 未结 3 1473
感情败类
感情败类 2020-12-29 10:00

I\'m using Grunt for building my web project. I installed grunt-contrib-less package und added a task to my grunt.initConfig({..});



        
3条回答
  •  星月不相逢
    2020-12-29 10:14

    This works for me, but modified to reflect this scenario:

    less: {
        options: {
            paths: ["js/base"]
        },
        files: {
            expand: true,
            cwd: "js/base",
            src: ["**/*.less"],
            dest: "js/base",
            ext: ".css"
        }
    },
    

提交回复
热议问题