Previously on this series I showed how we could use gulp-preprocess
to remove the server rendered tags from our aspx page. Next up on the list is how can we remove the cassette bundle helpers. First thing is we need to do is find the equivalent gulp-inject syntax.
Cassette
@Bundles.RenderScripts()
gulp-inject
<!-- . . .
Posted in: buildgulpjavascript
Problem, we want to remove server side asp.net scripts from our aspx page and covert them to plain html.
In our old index.aspx page we had a few server rendered scripts for example a simple welcome message that is set by some method in code behind.
<h1><%:WelcomeMessage%></h1>
. . .
Posted in: gulp