Webpack not loading application module css


I am using the default webpack config (unchanged) and running nativescript with pure JS. I have a bundle-config file where I register my application modules e.g
global.registerModule("views/login/login", () => require("./views/login/login"));
And I required the file in my app.js

Its only able to load the main app.css though but not others e.g views/login/login.css