Skip to content

Instantly share code, notes, and snippets.

@hach-que
Created December 15, 2017 05:57
Show Gist options
  • Save hach-que/fea8797a656baf62b2453f004b0169fa to your computer and use it in GitHub Desktop.
Save hach-que/fea8797a656baf62b2453f004b0169fa to your computer and use it in GitHub Desktop.
@using Webpack
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
@await Html.WebpackStylesAsync("page-common")
@RenderSection("styles", required: false)
</head>
<body>
<!-- content including call to RenderBody in here -->
@await Html.WebpackScriptsAsync("page-default")
@RenderSection("scripts", required: false)
</body>
</html>
body {
background-color: red;
}
// Make sure you actually place common.css in the "css" folder
// and not next to this TypeScript file when reading the example.
// This path is relative to this file, so in reality you can include
// CSS resources from anywhere (including files in node_modules).
import '../../css/common.css';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment