Skip to content

Instantly share code, notes, and snippets.

@dreyescat
dreyescat / index.html
Created December 18, 2015 18:02
Webpack config to expose bundle in a variable in the global context
<html>
<head>
</head>
<body>
<script src="lib/yourlib.js"></script>
<script>
window.onload = function () {
EntryPoint.run();
};
</script>
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class Apology extends JFrame {
public static void main(String[] args)
{
EventQueue.invokeLater(new Runnable() {
public void run() {
new Apology();