This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="common.js"></script> | |
<script src="login-main.js"></script> | |
</head> | |
<body> | |
Please enable JavaScript in your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js'); | |
module.exports = { | |
entry: { | |
login : "./webserver/frontend/index.html" | |
}, | |
module: { | |
loaders: [ |