Hello! I am currently in the process of creating my first MERN stack application, using Webpack as the build tool. The main objective is to have Express serving the APIs for the app and webpack-dev-server handling the static content (from my static directory) and bundles.
Below is a summary of my build:
Project running at http://localhost:8000/
webpack output served from /
Content not from webpack served from 'static'
Hash: 0f82642b68722fddb0c7
Version: webpack 3.1.0
Time: 3941ms
Asset Size Chunks Chunk Names
app.bundle.js 15.4 kB 0 [emitted] app
vendor.bundle.js 1.35 MB 1 [emitted] [big] vendor
[10] (webpack)/buildin/global.js 509 bytes {1} [built]
...
+ 556 hidden modules
webpack: Compiled successfully.
My dependencies include:
"dependencies": {
"body-parser": "^1.17.2",
...
},
"devDependencies": {
"babel-cli": "^6.24.1",
...
}
Here is a glimpse of my webpack.config.js settings:
const webpack = require('webpack');
...
Module exports...
Although all network traffic appears to be functioning correctly, when I access port 8000 a blank screen is displayed. Can anyone offer any guidance or suggestions? Thank you!