Skip to content

Instantly share code, notes, and snippets.

var webpack = require('webpack');
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js');
module.exports = {
entry: {
login : "./webserver/frontend/index.html"
},
module: {
loaders: [
<!DOCTYPE html>
<html>
<head>
<script src="common.js"></script>
<script src="login-main.js"></script>
</head>
<body>
Please enable JavaScript in your browser.
if (typeof DEBUG === 'undefined') {
var DEBUG = false;
}
function WebpackServiceWorker(params, helpers) {
const loaders = helpers.loaders;
const cacheMaps = helpers.cacheMaps;
// navigationPreload: true, { map: (URL) => URL, test: (URL) => boolean }
const navigationPreload = helpers.navigationPreload;
if (typeof DEBUG === 'undefined') {
var DEBUG = false;
}
function WebpackServiceWorker(params, helpers) {
const loaders = helpers.loaders;
const cacheMaps = helpers.cacheMaps;
// navigationPreload: true, { map: (URL) => URL, test: (URL) => boolean }
const navigationPreload = helpers.navigationPreload;