sonicoder86 / angular2-babel-esnext-starter

Angular development and testing examples with Babel in Javascript (ES6/ES7).
488 stars 84 forks source link

How do I replace KOA with Express ? #44

Closed aflext closed 7 years ago

aflext commented 7 years ago

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

sonicoder86 commented 7 years ago

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.

aflext commented 7 years ago

@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'
}