app.use(
sassMiddleware({
src: path.join(__dirname, "public", "scss"),
dest: path.join(__dirname, "public", "css"),
debug: true,
outputStyle: "compressed",
prefix: "/css"
})
);
After first routes load it work fine but in next nested routes main.css gives prifix mismatch error.main.css not loaded to website.
route:- {Localhost:3000/project } | success
[sass] dest: E:\Web Development\PersonalWeb\public\css\main.css
route:- {Localhost:3000/project/project-details } | failed
[sass] skip: /project/project-detail/css/main.css prefix mismatch
Aucun commentaire:
Enregistrer un commentaire