Skip to content

Instantly share code, notes, and snippets.

module.exports = {
styleLoader: require('extract-text-webpack-plugin').extract(
{
fallbackLoader: 'style-loader',
loader: 'css-loader!sass-loader'
}
),
styles: {
'mixins': true,
@gplume
gplume / base.html
Last active November 14, 2015 05:00
httprouter vs. Gin - hijacked connection
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Chat</title>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
</head>
@gplume
gplume / base.html
Last active September 12, 2015 12:53
Gin-Gonic / hijacked connection
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Chat</title>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
</head>
<script>
var conn = new WebSocket("ws://0.0.0.0:8000/api/messages");