Fleshed out API, added simple email support.
This commit is contained in:
@ -135,6 +135,7 @@ class Server {
|
||||
getLandingFile() {return path.join(this.app.getPublicDirectory(), LANDING_FILE);}
|
||||
getExpress() {return this.express;}
|
||||
getAPI() {return this.api;}
|
||||
getApp() {return this.app;}
|
||||
|
||||
isRunning() {
|
||||
if(typeof this.http !== typeof undefined) {
|
||||
@ -235,7 +236,11 @@ class Server {
|
||||
}
|
||||
|
||||
onWatchChange(error, stats) {
|
||||
if(error) console.log(error);
|
||||
if(error || (stats.compilation.errors && stats.compilation.errors.length)) {
|
||||
console.error(error || stats.compilation.errors);
|
||||
} else {
|
||||
console.log("Server compiled!");
|
||||
}
|
||||
}
|
||||
|
||||
onGetRequest(req, res) {
|
||||
|
@ -62,9 +62,11 @@ module.exports = function(server, app) {
|
||||
output.module = {
|
||||
rules: [
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
test: /\.jsx?$|\.js?$/,
|
||||
exclude: /node_modules/,
|
||||
loaders: ['babel-loader']
|
||||
use: {
|
||||
loader: 'babel-loader'
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.scss$|\.css$/i,
|
||||
|
Reference in New Issue
Block a user