sonicoder86/angular2-babel-esnext-starter

How do I replace KOA with Express ?

Closed this issue · 2 comments

It seems there is a lot of dependencies of KOA..

It serves the static files and implements the authentication.

My plan is to get rid of the server side and implementa authentication with Auth0 and post storage with either Firebase or LocalStorage. That would make this problem obsolete.

@BlackSonic I copy the webpack and gulp config to create a project and the file structure is the same with the starter,but the boot file is not bundled into the dist file only if i change the path of entry.boot to jquery which is installed via npm.

// ./client/boot.js
alret(1);

// ./client/vendor.js
import 'jquery';
import 'angular-route'

// this will ouput boot.js and vendor.js into dist file
entry: {
    boot: 'jquery',
    vendor: ['jquery', 'angular-route']
},

// this will not
entry: {
    boot: './client/boot.js',
    vendor: './client/vendor.js'
}