While searching I found something named as moduleId to set the relative paths of template and CSS files, but I don\'t know exactly how to use moduleId
moduleId
Resolved my Problem by changing path (from src to dist)of importing file at the run time like this :-
src
dist
moduleId: module.id.replace("/dist/", "/src/")
By doing so you can change path directory of module ID.
thanks to @Nicolai for this awesome comment
PS:- Posting as answer may help someone