changed webpack entry to ./server/index.js
This commit is contained in:
parent
b445b54aa4
commit
5355debdfa
3 changed files with 1 additions and 18 deletions
|
@ -1,7 +0,0 @@
|
||||||
const Server = require('./server');
|
|
||||||
|
|
||||||
const exports = {
|
|
||||||
Server,
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = exports;
|
|
|
@ -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();
|
|
||||||
});
|
|
||||||
};
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
||||||
__dirname: false,
|
__dirname: false,
|
||||||
},
|
},
|
||||||
externals: [nodeExternals()],
|
externals: [nodeExternals()],
|
||||||
entry : ['babel-polyfill', 'whatwg-fetch', './speech.js'],
|
entry : ['babel-polyfill', 'whatwg-fetch', './server/index.js'],
|
||||||
output : {
|
output : {
|
||||||
path : Path.join(__dirname, '/'),
|
path : Path.join(__dirname, '/'),
|
||||||
publicPath : '/',
|
publicPath : '/',
|
||||||
|
|
Loading…
Reference in a new issue