How to steal build an app of two html files with shared dependencies in JavascriptMVC

StackOverflow https://stackoverflow.com/questions/10413200

  •  05-06-2021
  •  | 
  •  

Question

I have an application with two html files:

  • app/page1.html
  • app/page2.html

These pages share dependencies, i.e -jquery / plugins and I want to use the "steal build" script to build them efficiently.

I found some examples and questions that describe this issue and give examples on multiple apps, but didn't give a solution for this problem.

But when I try to build with this line for example I'm getting errors:

js steal/buildjs app/page1.html app/page2.html -to app

Anyone had experience with this scenario?

Thanks, Shai

Was it helpful?

Solution

A good soul (asavoy) created a pull request that deals with this issue, apparently it was a bug in the new version:

https://github.com/jupiterjs/steal/pull/83

I'll post an update once I'll test it out myself.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top