Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use * to match files? #320

Open
Zzzen opened this issue Jul 15, 2016 · 2 comments
Open

Unable to use * to match files? #320

Zzzen opened this issue Jul 15, 2016 · 2 comments

Comments

@Zzzen
Copy link

Zzzen commented Jul 15, 2016

I have many less files in app/styles/less, and I want to compile them and output to 'app/styles/css'. When I using following config, I got an exception:

Error: Unable to write "app/styles/css/*"file (Error code: ENOENT).

        less: {
            development: {
                options: {
                    paths: ['app/styles/css']
                },
                files: {
                    'app/styles/css/': 'app/styles/less/*'
                }
            }
        }
@alampros
Copy link

There's a less plugin for this that works great:
https://github.com/just-boris/less-plugin-glob

@geri777
Copy link

geri777 commented Sep 2, 2016

I am using version 2.15.5. I can use this:

less: {
    options: {
        paths: ['./']
    },
    // target name
    files: {
        expand: true,
        cwd: "./",
        src: ["**/*.less", "!node_modules/**"],
        ext: ".css"
    }       

}

This setting compiles each less file to css.

My problem is (and I think this is a bug) that files named like "styles.new.less" are not compiled to "styles.css" instead to "styles.new.css"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants