Stuk/require1k

Load files from bower

lukasoppermann opened this issue · 2 comments

Hey, can I load deps from bower?

In requirejs you have a config object, that lest you say something like this.

require.config({
    baseUrl: "./",
    paths: {
        "jquery": "../bower_components/jquery/dist/jquery"
    }
});

Can I somehow do this with require1k?

Stuk commented

There is no way to do this with require1k. I have an idea that may or may not work with the size restrictions.

As a work around you can explicitly require('./bower_components/jquery/dist/jquery')

Stuk commented

The idea I had won't work, so afraid the explicit require is the only way.