Bad concatenation with code before require #74

Closed
outaTiME opened this Issue Mar 22, 2013 · 5 comments

Projects

None yet

2 participants

@outaTiME

Why im experimenting bad concatenation when some code found before require instruction ...

take a look, in this scenario doesn't work ...

(function ($) {
  // pass
}(Foo));

//= require foo/platform/core
//= require foo/platform/bootstrap

but with this yup:

//= require foo/platform/core
//= require foo/platform/bootstrap

(function ($) {
  // pass
}(Foo));

im doing something wrong ??? im need code before require statement ...

thks !

@puzrin
Member
puzrin commented Mar 22, 2013

//= require and other mincer directives are allowed only in the begining of file. If you need to change location of current file content, use //=require_self . See sprockets docs for details.

@puzrin puzrin closed this Mar 22, 2013
@outaTiME

Thks, pal ... i will try ...

Im backporting ruby sprockets (v1.0.2) app and im using in that way ...

@puzrin
Member
puzrin commented Mar 22, 2013

I guess, your app uses very old sprockets version. Mincer is almost 100% exact port of v2.6.0+.

@outaTiME

Cooooooool, i will check !! 

Thks !!

On Thu, Mar 21, 2013 at 11:31 PM, Vitaly Puzrin notifications@github.com
wrote:

I guess, your app uses very old sprockets version. Mincer is almost 100% exact port of v2.6.0+.

Reply to this email directly or view it on GitHub:
#74 (comment)

@outaTiME

works like a charm, thks once ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment