Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
¿Es posible exportar al cuerpo de dos archivos diferentes desde main.js?

Quiero exportar componentes a varios archivos desde main.js, algo como esto:

principal.js:

 import Block1 from './Block1.svelte'; import Block2 from './Block2.svelte'; export const Block1 = new Block1({ target: document.body}); //to index.html export const Block2 = new Block2({ target: document.body}); //to index2.html

¿Cómo compilar múltiples archivos .html en el directorio público en svelt js?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Encontré este repositorio:

https://github.com/Tom-Siegel/multi-page-svelte

Funciona bien y es posible agregar varias páginas como entradas

 const inputs = [ "main", //string defaults to input: src/[name].js and output: public/build/[name].js { input: "src/second.js", output: { file: "public/build/second.js", name: "second" }, css: "public/build/second.css", }, //object for setting more specific values for input and output of roolup configuration ];
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!