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"
},