Jonathan Harrison
1 min readJun 7, 2018

--

Hi Divyansh, you write your CSS classes for example in the index.less file in /src; then use style as normal in your CSHTML files.

When you build the project, webpack will run and inject the compiled CSS file into the generated Shared_Layout.cshml; so your CSHTML renders styled in the browser.

--

--

Jonathan Harrison
Jonathan Harrison

Written by Jonathan Harrison

Principal Software Engineer @ Tripadvisor. Formerly at Spotify, Altitude Angel and Microsoft. All opinions are my own.

Responses (1)