remove route preloading from sapper, force NODE_ENV=production

This commit is contained in:
Nolan Lawson 2018-04-09 07:33:57 -07:00
parent ea717b74e3
commit 7b848db140
2 changed files with 7 additions and 7 deletions

10
package-lock.json generated
View file

@ -8342,7 +8342,7 @@
} }
}, },
"sapper": { "sapper": {
"version": "github:nolanlawson/sapper#2b21a7cfefaa9305354ce0ce0a51a83e9fe645a6", "version": "github:nolanlawson/sapper#f6b505dde7318c4925ef4cab824653293602d271",
"requires": { "requires": {
"chalk": "2.3.2", "chalk": "2.3.2",
"chokidar": "1.7.0", "chokidar": "1.7.0",
@ -8352,7 +8352,7 @@
"require-relative": "0.8.7", "require-relative": "0.8.7",
"rimraf": "2.6.2", "rimraf": "2.6.2",
"webpack": "3.11.0", "webpack": "3.11.0",
"webpack-hot-middleware": "2.21.2" "webpack-hot-middleware": "2.22.0"
}, },
"dependencies": { "dependencies": {
"acorn-dynamic-import": { "acorn-dynamic-import": {
@ -11047,9 +11047,9 @@
} }
}, },
"webpack-hot-middleware": { "webpack-hot-middleware": {
"version": "2.21.2", "version": "2.22.0",
"resolved": "https://registry.npmjs.org/webpack-hot-middleware/-/webpack-hot-middleware-2.21.2.tgz", "resolved": "https://registry.npmjs.org/webpack-hot-middleware/-/webpack-hot-middleware-2.22.0.tgz",
"integrity": "sha512-N5c80o31E0COFJV8HRjiX3hJetDOwQ2Ajt5TTORKA9diOimhFtmaZKSfO3pQKMeQngb7I4TUnNDroJiUzPFhKQ==", "integrity": "sha512-kmjTZ6WXZowuBfTk1/H/scmyp09eHwPpqF2mHRZ9WMCBlQ61NSkqZ25azPlPOeCIhva57PGrUyeTIW5X8Q7HEw==",
"requires": { "requires": {
"ansi-html": "0.0.7", "ansi-html": "0.0.7",
"html-entities": "1.2.1", "html-entities": "1.2.1",

View file

@ -7,8 +7,8 @@
"dev": "run-s build-svg serve-dev", "dev": "run-s build-svg serve-dev",
"serve-dev": "run-p --race build-sass-watch serve", "serve-dev": "run-p --race build-sass-watch serve",
"serve": "node server.js", "serve": "node server.js",
"build": "run-s globalize-css build-sass build-svg sapper-build deglobalize-css", "build": "cross-env NODE_ENV=production run-s globalize-css build-sass build-svg sapper-build deglobalize-css",
"sapper-build": "sapper build", "sapper-build": "cross-env NODE_ENV=production sapper build",
"start": "cross-env NODE_ENV=production node server.js", "start": "cross-env NODE_ENV=production node server.js",
"build-and-start": "run-s build start", "build-and-start": "run-s build start",
"build-svg": "node ./bin/build-svg.js", "build-svg": "node ./bin/build-svg.js",