-
Notifications
You must be signed in to change notification settings - Fork 0
Able to start webserver. #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
plrenaudin
left a comment
There was a problem hiding this 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", |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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'); | |||
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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: [ |
There was a problem hiding this comment.
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
No description provided.