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

302
Views
¿Cómo cambiar la ubicación predeterminada de svelte css en rollup.config.js?

Estoy usando componentes esbeltos en algunas páginas de myapp. el árbol de directorios es como:

 -myapp --controller --static --svelte

Me las arreglé para configurar svelte para enviar el paquete js a myapp/static/js/ modificando rollup.config.js :

 export default { input: 'src/main.js', output: { sourcemap: true, format: 'iife', name: 'app', file: '../static/js/bundle.js'

Sin embargo, los estilos en los componentes también se guardan en myapp/static/js que no es muy idomático. Entonces quiero cambiar la ubicación a myapp/static/css

Actualmente css se define como:

 plugins: [ svelte({ compilerOptions: { // enable run-time checks when not in production dev: !production } }), css({ output: 'bundle.css' }),

Intenté cosas como:

 css({ output: { file: '../static/css/bundle.css' }, }),

Pero me sale este error:

 bundles src/main.js → ../static/js/bundle.js... [!] (plugin css) Error: The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths, received "../static/js/bundle.css".

Entonces, me pregunto cuál es la forma correcta de hacerlo.

about 4 years ago · Juan Pablo Isaza
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!