js-kyle / connect-assets

A Rails-style asset pipeline for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

//= require is broken

thesmart opened this issue · comments

I am unable to get the require directive to work. Here is my assets tree:

assets
├── css
│   ├── app.scss
│   └── vendor
│       └── normalize.scss
├── ejs
│   ├── hello.jst.ejs
│   └── partials
│       └── title.jst.ejs
└── js
    ├── app.js
    └── vendor
        └── jquery-1.11.3.js

When I navigate to http://127.0.0.1:9000/assets/js/app.js I get:

//(=) require vendor/jquery-1.11.3.js

alert('ack!');

The contents of app.js is:

//= require vendor/jquery-1.11.3.js

alert('ack!');

Ah, one has to write a template and use the js method.