Starting with the architecture of React and Flux, but met some infrastructure problems.
I cannot access the webpage launched by the webpack-dev server on the firewall (scotch-box). The command launches the application on localhost: 3002, my stray field has an IP address (192.168.33.10) on a Windows host machine and I can access it. But when I try to access 192.168.33.10/100000, I get the error message: "I can not access the page ...."
I checked that I have access to the page from the firewall console curl http://localhost:3002.
Does anyone have any idea why this is happening?
I also use babel and presets for es2015 and react.
Here is the webpack configuration file:
module.exports = {
entry: "./src/js/main.js",
output: {
path: "./dist",
filename: "bundle.js",
publicPath: "/"
},
devServer: {
inline: true,
port: 3002,
contentBase: "./dist"
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: "babel",
query: {
presets: ["es2015", "react"]
}
}
]
}
};
And here is mine package.json
{
"name": "flux-jenezis",
"version": "1.0.0",
"description": "Flux realisatoin usign egghead guide",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server"
},
"keywords": [
"flux",
"react"
],
"author": "jenezis",
"license": "ISC",
"dependencies": {
"flux": "^2.1.1",
"react": "^15.0.2",
"react-dom": "^15.0.2",
"react-router": "^2.4.0"
},
"devDependencies": {
"babel-core": "^6.7.7",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0"
}
}
UPD. , node, 192.168.33.10:3002
UPD2: Windows , : " "