mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 03:54:46 +00:00
create API for exporting
This commit is contained in:
@@ -5,14 +5,12 @@ import { locations } from '../config';
|
||||
export function build() {
|
||||
return new Promise((fulfil, reject) => {
|
||||
try {
|
||||
console.log('1');
|
||||
const emitter = _build({
|
||||
dest: locations.dest(),
|
||||
app: locations.app(),
|
||||
routes: locations.routes(),
|
||||
webpack: 'webpack'
|
||||
});
|
||||
console.log('2', emitter);
|
||||
|
||||
emitter.on('build', event => {
|
||||
console.log(colors.inverse(`\nbuilt ${event.type}`));
|
||||
|
||||
Reference in New Issue
Block a user