V
V
vasIvas2015-08-21 19:50:29
JavaScript
vasIvas, 2015-08-21 19:50:29

How to register routing in browser-sync?

app/
    node_modules/
    src/
        javascripts/
                    a/
                      test.js
                    b/
                      test.js
    config.json
    gulpfile.js

Is it possible in browser-sync to set up routing so that asking for test.js from folder a is given from b ?
baseDir is set to /src/javascripts/
Or if not, then at least how to write to access bower_components if baseDir: ./src ?
app/
    node_modules/
    bower_components/
    src/
        javascripts/
        index.html
    config.json
    gulpfile.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pomeo, 2015-08-21
@pomeo

Run apache or nginx, run rewrite as you want. And run browser-sync with the proxy parameter, where the address of Apache or nginx will be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question