JeffreyWay / Laravel-Elixir-Rollup

Official Rollup extension for Laravel Elixir. (Includes support for .vue files).
29 stars 12 forks source link

Relative paths on Laravel 5.3 #4

Closed rogervila closed 4 years ago

rogervila commented 8 years ago

Hello jeffrey,

I have a app.js file on resources/assets/js.

When I import a file from the same route level there is no problem, but when I try to import a file from a deeper level, gulp breaks.

This is the folder structure: rollup

This is the app.js content:

import Config from './base/config';
import Test from './test';

console.log( Test );
console.log( Config );

The test.js and base/config.js content:

export default {
    test: 'testing message'
};

What am I missing?

Thank you very much.