Skip to content

Conversation

@eakouri
Copy link
Owner

@eakouri eakouri commented Sep 15, 2018

No description provided.

Copy link

@plrenaudin plrenaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked out the PR locally and it doesn't work.

😞

Other things you should consider:

  • Use prettier and eslint for code formatting / checking
  • Setup less or sass css processors
  • Will you do SSR or CSR? If you choose the later you can remove all the server related code and simplify your life quite a bit ;-). This would also impact your server hosting costs.
  • Consider using Parcel if you find Webpack too daunting, it's a brilliant alternative for small/medium projects which requires no configuration for your use case
  • Decide on the browser support strategy to setup Babel accordingly

You go Girl!

"main": "index.js",
"scripts": {
"build": "webpack",
"build-babel": "npm run build-babel-server && npm run build-babel-client",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why using babel instead of just webpack with babel-loader?


test('should start and trigger a callback', async() => {
let promise = webServer.start()
await expect(promise).resolves.toBeUndefined()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does those tests mean? Shouldn't it be something about checking that the promise fulfilled?

@@ -0,0 +1,40 @@
let path = require('path');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be const not let.

},
module: moduleObj,
plugins: [
new HtmlWebPackPlugin({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing import for this plugin

let path = require('path');
let nodeExternals = require('webpack-node-externals');
const moduleObj = {
loaders: [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's the old way of using webpack, check this for the rules set https://webpack.js.org/configuration/module/#rule-loaders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants