Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bad concatenation with code before require #74

Closed
outaTiME opened this Issue · 5 comments

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
Owner

//= 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
@outaTiME

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

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

@puzrin
Owner

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

@outaTiME
@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
Something went wrong with that request. Please try again.