dbashford / mimosa-require

AMD/RequireJS module for Mimosa browser development workflow tool
3 stars 3 forks source link

Directory alias not working with shims #41

Closed DrSammyD closed 9 years ago

DrSammyD commented 10 years ago

This is related to https://github.com/dbashford/mimosa-require/issues/31

requirejs.config({
    paths: {
        "zurb": "../vendor/foundation"
        "jquery": "../vendor/jquery/jquery"
    },
    shim:{
        "jquery":{exports:['jQuery','$']},
        "zurb/foundation":{exports:"Foundation",deps:['jquery']},
        "zurb/foundation.abide":'zurb/foundation'
    }
})

the full path would be ../vendor/foundation/foundation.js and ../vendor/foundation/foundation.abide.js

but I still get this error Shim path zurb/foundation inside file ref.js cannot be found

if you'd like to see it in action, I have a skeleton I'm creating

dbashford commented 10 years ago

Will take a look. Might be a day or so. Can hopefully check it out tonight. And thanks for pointing me at the skeleton, should help with testing.

DrSammyD commented 9 years ago

FYI: make sure you're on the require-shim-alias branch

dbashford commented 9 years ago

FYI, saw your comment on the r.js issue, just in case it helps... http://dbashford.github.io/bumping-require-js-but-not-for-mimosa-yet/index.html

DrSammyD commented 9 years ago

Yeah I read that but I do want to use modules soon.

dbashford commented 9 years ago

Should be fixed. Give the latest mimosa-require or mimosa a go.

DrSammyD commented 9 years ago

It is indeed. Thanks!