Skip to content

Instantly share code, notes, and snippets.

View hach-que's full-sized avatar

June Rhodes hach-que

View GitHub Profile
<script src="/js/polyfills.f501bf962ba966ac6403.min.js"></script>
<script src="/js/jquery.e884b239c22e79ed9c69.min.js"></script>
<script src="/js/bootstrap.bceff9462fe562e8d30e.min.js"></script>
<script src="/js/page-common.e3d4ffd6e23be8f5005c.min.js"></script>
<script src="/js/font-awesome.576c74921ff4f74c0048.min.js"></script>
@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>
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
using Newtonsoft.Json;
using System;
using System.Threading.Tasks;
namespace Webpack
{
public static class WebpackHtmlHelperExtensions
{
@hach-que
hach-que / _ScriptsTemplate.cshtml
Last active December 15, 2017 05:51
_ScriptsTemplate.cshtml
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<script src="<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>
<% } %>
<!-- ... -->
<ItemGroup>
<WebpackInputs Include="app\**\*" />
<WebpackInputs Include="webpack.config.ts" />
</ItemGroup>
<ItemGroup>
<WebpackOutputs Include="wwwroot\assets\**\*" />
<WebpackOutputs Include="wwwroot\css\**\*" />
<WebpackOutputs Include="wwwroot\js\**\*" />
</ItemGroup>
// Instructs WebPack to bundle up skin assets alongside TinyMCE. See:
// https://www.tinymce.com/docs/advanced/usage-with-module-loaders/#webpackfile-loader
(require as any).context(
'file-loader?name=[path][name].[ext]&outputPath=assets/&context=node_modules/tinymce!tinymce/skins',
true,
/.*/
);
import * as $ from 'jquery';
(window as any).jQuery = (window as any).$ = $;
{
"compileOnSave": false,
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"noEmit": true,
"allowJs": true,
// Copyright Redpoint Games Pty Ltd 2017 All Rights Reserved. Some portions of this code are from Rama's Victory BP Library, which is licensed separately.
#include "SublevelComponent.h"
#include "Misc/PackageName.h"
#include "Engine/World.h"
#include "UnrealNetwork.h"
USublevelComponent::USublevelComponent()
{
PrimaryComponentTick.bCanEverTick = true;
const config = {
context: path.resolve(__dirname, '..'),
output: {
path: path.resolve(__dirname, '../build/public/assets'),
publicPath: '/assets/',
pathinfo: VERBOSE,
},
cache: DEBUG,