As I venture into the world of Angular2 development, I have carefully crafted a specific folder structure for my project:
components
component1
home.component.ts
home.component.html
home.component.scss
To streamline the building process, I rely on Gulp to handle tasks. Once everything is compiled, the final structure looks something like this:
scripts
somefile1.js
somefile2.js
...
styles
mine.css
vendor.css
index.html
favicon.ico
I am seeking advice on how to seamlessly integrate HTML templates within my Javascript files. It is crucial that I can easily debug my code and inspect the original folder structure within my browser's dev tools. Currently, I am utilizing the gulp-sourcemaps
plugin with the sourceMap
option set to true
for my Typescript compiler. However, I am unsure about how to achieve similar functionality for my HTML templates.
Are there any node plugins you recommend for accomplishing this task?