Skip to content

Commit 3b1844b

Browse files
committed
Fixed build to work with github pages
1 parent c3ad910 commit 3b1844b

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app.min.js -diff

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules
2-
dist

app/app.js app.js

File renamed without changes.

app.min.js

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
99
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.js"></script>
10-
<script defer src="app/app.js"></script>
10+
<script defer src="app.min.js"></script>
1111

1212
<title>Brisbane Javascript</title>
1313
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.css">

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"start": "beefy app/app.js:app.js",
9-
"build": "rm -rf dist;mkdir dist && cp -r index.html images style.css dist && browserify app/app.js|uglifyjs>dist/app.js"
9+
"build": "rm app.min.js; browserify app.js|uglifyjs>app.min.js"
1010
},
1111
"author": "",
1212
"license": "ISC",

0 commit comments

Comments
 (0)