less.js), linking it to our
index.html page, and letting its magic work without having to set up anything else.
Should we do that, then? Not a chance. As we said earlier, delegating the compilation task on the client side would be highly inefficient, especially in a client-intensive Angular 2-based native web app. This is what we're going to do instead:
- Add a new
style.lessfile to our project.
- Update our Gulp script to process and compile it, outputting the resulting
style.cssfile into the
- Link the resulting
.cssfile to the
/wwwroot/index.htmlroot application file.
- Make a quick test before starting ...