updated to webpack 4

This commit is contained in:
Danny Coates 2018-07-12 13:13:49 -07:00
parent b76899a353
commit ebf6bda467
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
17 changed files with 6052 additions and 5223 deletions

View file

@ -1,15 +1,5 @@
const html = require('choo/html');
/*
The current weback config uses package.json to generate
version.json for /__version__ meaning `require` returns the
string 'version.json' in the frontend context but the json
on the server.
We want `version` to be constant at build time so this file
has a custom loader (/build/version_loader.js) just to replace
string with the value from package.json. 🤢
*/
const version = require('../../../package.json').version || 'VERSION';
const version = require('../../../package.json').version;
const browser = browserName();
module.exports = function(state) {