6/26/2023 0 Comments Write sass in pug template![]() ![]() But this "solution" seems like really bad practice and also hasn't worked. I have also tried to start the express server parallel to when I start the front end using gulp so that I can call the routes from the express server. ![]() This seems like the way to go, but I haven't been able to get the styles to be imported correctly so that the page looks like it should which is why I moved onto the second thought process. Express JS seems like it's not importing the compiled SASS styles. However, when I call the Pug file from an express route, there's no styles, even though I have imported them. However, no luck so far.Ĭreating an Express JS green field project, installing Pug and BrowserSync to compile the. The past few days I have been working on trying to understand how I can extend the template with Express JS so that I can call routes to call REST functions from my backend Spring Boot Application. I should also note that I am relatively new to template engines and Gulp itself. I just recently purchased a bootstrap template ( ) from bootstrapious that is written using Pug, Gulp, and SASS. ![]()
0 Comments
Leave a Reply. |