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

117
Views
css no cargado en webpack

Acabo de aprender webpack y tengo un problema cuando ejecuto npm run start-dev mi css no está cargado. ¿Como arreglarlo?

este código en webpack.config.js:

 const path = require("path"); module.exports = { entry: "./src/index.js", output: { path: path.resolve(__dirname, "dist"), filename: "bundle.js" }, mode: "production", module: { rules: [ { test: /\.css$/, use: [ { loader: "style-loader" }, { loader: "css-loader" } ] } ] } }

este código en index.js

 import "./style/style.css"; import $ from 'jQuery' import 'bootstrap'; console.log("berhasil tehubung");
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Probablemente también necesite el complemento del paquete web del cargador de archivos, utilicé esta configuración en uno de mis archivos de configuración del paquete web:

 { loader: "file-loader", options: { name: "[name].css", outputPath: "css/", }, }
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!