question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bundle and Example in parallel folders

See original GitHub issue

In my scenario…

screenshot 2017-03-29 12 00 14

I want to serve examples but my module is built into build because this is a lib that people will consume.

However, the served example doing <script src="../build/lib.js"></script>

Will not serve correctly. What’s the best way to handle this situation? Is there a copy operation? Can serve perform relative paths or does that breach security?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jdonaldson10commented, Apr 3, 2017

I have exactly the same use case as @mflux in a few of my projects. Looking at other module bundlers/task runners this type of setup is seems pretty supported by allowing an array of values for their contentBase equivalent.

From some quick searching I can see support in:

Implementing this could be of great help to those migrating to rollup from other tools by minimizing the reworking a project may require.

1reaction
thghcommented, Apr 7, 2017

Alright, good point @jdonaldson10, make sure to check out version 0.3.0 😃

Thanks for bringing it up @mflux!

Read more comments on GitHub >

github_iconTop Results From Across the Web

bundle install creating a 'parallel' folder in the rails app
So when I ran bundle install again it created a separate folder parallel and installed the gems there. My question is why does...
Read more >
Python File Importation into Multi-Level Directory Modules and ...
As a Python programmer, it is a best practice to abstract application code into different files and directories and according to their related...
Read more >
Share Files and Folders - Parallels
Parallels Desktop allows you to share folders between the Mac OS X and Windows file systems, so you can easily open Mac OS...
Read more >
bundle install - Bundler
Creates a directory (defaults to ~/bin ) and places any executables from the gem there. These executables run in Bundler's context. If used,...
Read more >
Python – Import module from different directory - GeeksforGeeks
Let's suppose, to import how to import file in Python, we have two different folders, one contains main.py which is our main Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found