changed webpack entry to ./server/index.js

This commit is contained in:
bill bittner 2018-04-02 10:17:25 -07:00
parent b445b54aa4
commit 5355debdfa
3 changed files with 1 additions and 18 deletions

View file

@ -1,7 +0,0 @@
const Server = require('./server');
const exports = {
Server,
};
module.exports = exports;

View file

@ -1,10 +0,0 @@
const { lstatSync, readdirSync } = require('fs');
const { join } = require('path');
export const getSubDirectoryNames = (root) => {
return readdirSync(root)
.filter(name => {
const fullPath = join(root, name);
return lstatSync(fullPath).isDirectory();
});
};

View file

@ -9,7 +9,7 @@ module.exports = {
__dirname: false,
},
externals: [nodeExternals()],
entry : ['babel-polyfill', 'whatwg-fetch', './speech.js'],
entry : ['babel-polyfill', 'whatwg-fetch', './server/index.js'],
output : {
path : Path.join(__dirname, '/'),
publicPath : '/',