Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Mincer can't find logical path #23

Closed
nemosupremo opened this issue Jul 28, 2014 · 1 comment
Closed

Mincer can't find logical path #23

nemosupremo opened this issue Jul 28, 2014 · 1 comment

Comments

@nemosupremo
Copy link

I have my config set up like so:

mince: {
      main: {
        options: {
          include: ["assets/images", "assets/javascripts", "assets/templates", "assets/stylesheets", "vendor/javascripts", "vendor/stylesheets"]
        },
        files: [{
          expand: true,
          cwd: "assets/javascripts/",
          src: ["apps/*.coffee"],
          dest: "build/public/assets/apps"
        }]
      }
    }

It seems because my files are behind the apps/ directory, they ultimately cause, in helpers.js (

grunt.fail.warn('Cannot find logical path ' + src.cyan);
)

asset = environment.findAsset(path.basename(src));
    if (!asset) {
      grunt.fail.warn('Cannot find logical path ' + src.cyan);
    }

Where findAsset should be looking for apps/myfile.coffee rather than just myfile.coffee

@mjonuschat
Copy link
Collaborator

Hi! I've managed to reproduce the issue locally and hope to have a fix shortly.

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

No branches or pull requests

2 participants