fixed webpack!!!

This commit is contained in:
bill bittner 2018-03-08 16:21:37 -08:00
parent 657e0d6fe0
commit 22255ab713
4 changed files with 7 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -61,7 +61,8 @@ app.set('view engine', 'handlebars');
app.use(populateLocalsDotUser);
// start the server
const startServer = (mysqlConfig) => {
const start = (config) => {
const { mysqlConfig } = config;
const db = require('./models')(mysqlConfig); // require our models for syncing
db.sequelize
// sync sequelize
@ -89,14 +90,8 @@ const startServer = (mysqlConfig) => {
};
module.exports = {
hello () {
console.log('hello world');
},
speak (something) {
console.log(something);
},
start (config) {
const { mysqlConfig } = config;
startServer(mysqlConfig);
},
start,
};

View file

@ -13,7 +13,8 @@ module.exports = {
path : Path.join(__dirname, '/'),
publicPath : '/',
filename : 'index.js',
libraryExport: 'default',
library : '',
libraryTarget: 'commonjs-module',
},
module: {
rules: [