Skip to content

Commit

Permalink
fix non-minified build (it was being minified)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbj42 committed Sep 5, 2018
1 parent af7921c commit 207b862
Show file tree
Hide file tree
Showing 11 changed files with 1,431 additions and 14 deletions.
1 change: 0 additions & 1 deletion bin/warp-field-1.0.1.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions bin/warp-field-1.0.1.min.js

This file was deleted.

1 change: 0 additions & 1 deletion bin/warp-field-1.0.1.min.js.map

This file was deleted.

1,419 changes: 1,419 additions & 0 deletions bin/warp-field-1.0.2.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bin/warp-field-1.0.2.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/warp-field-1.0.1.js → bin/warp-field-1.0.2.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bin/warp-field-1.0.2.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/fov-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/fov-util.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "warp-field",
"version": "1.0.1",
"version": "1.0.2",
"description": "Portal-casting field-of-view algorithm",
"keywords": [
"fov",
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
var path = require('path');
var config = require('./package.json');

var minify = process.argv.indexOf('-p') !== -1;
var production = process.argv.indexOf('-p') !== -1;

var filename = 'warp-field-' + config.version
if (minify) {
if (production) {
filename += '.min.js';
} else {
filename += '.js';
}

module.exports = {
entry: "./src/index.ts",
mode: 'production',
mode: production ? 'production' : 'development',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'bin'),
Expand Down

0 comments on commit 207b862

Please sign in to comment.