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

215
Views
Webpack: ¿cómo puedo realizar un script en línea con webpack 5?

Estoy tratando de usar reaccionar para un proyecto de complemento de Figma.

figma plugin ui solo necesita un archivo html como este.

 // ui.html <div id="react-page"></div> <script type="text/javascript"> // here comes the inline script </script>

No puedo usar la etiqueta <html> , <head> o <body> en esto,

Porque el complemento Figma elimina las etiquetas al cargar el archivo html.

Entre los contenidos del archivo, los contenidos que excluyen las etiquetas ( <head> , ...) se insertan en el complemento <body> de Figma.

hay una opción que puedo usar:

html-webpack-inline-source-plugin

Si configuro esta biblioteca de la siguiente manera, funciona como quiero.

 plugins: [ new HtmlWebpackPlugin({ template: './src/app/index.html', filename: 'ui.html', inlineSource: '.(js)$', chunks: ['ui'], }), new HtmlWebpackInlineSourcePlugin(), ],

Por cierto, quiero usar la versión webpack 5. Pero, html-webpack-inline-source-plugin no funciona en webpack5

¿Puedo construir un entorno como este con webpack5?

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!