Now minifies static files with each nodemon restart

master
Keith Irwin 2017-04-12 20:46:02 -04:00
parent e84bb6ec3a
commit 449a813ab6
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
3 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,7 @@
{
"verbose": true,
"ext": "html, js, json, css",
"events": {
"restart": "npm run minify"
}
}

View File

@ -45,7 +45,7 @@
"scripts": {
"test": "mocha test.js",
"start": "node server.js",
"nodemon": "nodemon server.js",
"nodemon": "nodemon --ignore 'static/**/*.min.*' server.js",
"minify": "minify --template .{{filename}}.min.{{ext}} --clean static",
"update": "sudo n stable && sudo npm update --save && sudo npm prune"
},

View File

@ -45,7 +45,7 @@ h2 {
line-height: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
p {
p {
margin-top: 0;
margin-bottom: 10vh;
}
@ -112,7 +112,7 @@ main {
left: 0px;
right: 0px;
bottom: 0px;
overflow-y: auto;
overflow-y: auto;
}
.container {
padding-right: 5%;
@ -141,15 +141,15 @@ section {
border: 1px solid #666;
border-radius: .5vw;
} .btn:not(.disabled) {
-moz-box-shadow:
-moz-box-shadow:
inset .11vw .18vw .52vw rgba(255,255,255,.2),
inset -.11vw -.18vw .52vw rgba(0,0,0,.4),
.11vw .18vw .52vw #000;
-webkit-box-shadow:
-webkit-box-shadow:
inset .11vw .18vw .52vw rgba(255,255,255,.2),
inset -.11vw -.18vw .52vw rgba(0,0,0,.4),
.18vw .18vw .36vw #000;
box-shadow:
box-shadow:
inset .11vw .18vw .52vw rgba(255,255,255,.2),
inset -.11vw -.18vw .52vw rgba(0,0,0,.4),
.18vw .18vw .36vw #000;
@ -157,13 +157,13 @@ section {
text-decoration: none;
background: rgba(255,255,255,0.2);
} .btn:active:not(.disabled) {
-moz-box-shadow:
-moz-box-shadow:
inset .11vw .18vw .52vw rgba(0,0,0,.4),
inset -.11vw -.18vw .52vw rgba(255,255,255,.2);
-webkit-box-shadow:
-webkit-box-shadow:
inset .11vw .18vw .52vw rgba(0,0,0,.4),
inset -.11vw -.18vw .52vw rgba(255,255,255,.2);
box-shadow:
box-shadow:
inset .11vw .18vw .52vw rgba(0,0,0,.4),
inset -.11vw -.18vw .52vw rgba(255,255,255,.2);
} .btn:focus:not(.disabled){