Support prod and dev modes.

This commit is contained in:
Will Scullin 2019-03-01 10:14:34 -08:00
parent 2b63a4b569
commit c5fa13388d
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B
3 changed files with 979 additions and 292 deletions

1268
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Apple II Emulator in JavaScript",
"scripts": {
"build": "webpack",
"build": "webpack --mode=production",
"index": "scripts/index.pl > json/disks/index.js",
"lint": "eslint js",
"start": "webpack-dev-server"

View File

@ -3,7 +3,6 @@ const path = require('path');
module.exports =
{
mode: 'development',
devtool: 'source-map',
entry: {
main2: path.resolve('js/main2.js'),