mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
Adds a sapper extract CLI command, which scrapes the server to run as a static website starting at the site's root.
TESTED=Basic unit test ensuring relevant routes are added.
This commit is contained in:
@@ -5,4 +5,7 @@ const cmd = process.argv[2];
|
||||
if (cmd === 'build') {
|
||||
process.env.NODE_ENV = 'production';
|
||||
require('../lib/build.js')();
|
||||
}
|
||||
} else if (cmd === 'extract') {
|
||||
process.env.NODE_ENV = 'production';
|
||||
require('../lib/utils/extract.js')();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user