You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed both webpack and webpack-dev-server globally using npm. The bundle.js is not geerated.
Here's a simple example in which I'm having trouble:
webpack.config.js:
var webpack = require('webpack');
As the issue template you've removed explicitly says, please ask questions on Stack Overflow. You don't even specify what the problem is, so I'm closing this.
I've installed both webpack and webpack-dev-server globally using npm. The bundle.js is not geerated.
Here's a simple example in which I'm having trouble:
webpack.config.js:
var webpack = require('webpack');
module.exports = {
entry: "./client/main.js",
output: {
path: __dirname + '/public/build/',
publicPath: "build/",
filename: "bundle.js"
},
};
packae.json
{
"name": "note-app",
"version": "1.0.0",
"description": "application for notes",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"webpack-server": "webpack-dev-server --debug --devtool eval-source-map --output-pathinfo --watch --colors --online --content-base public --port:8080 --host 0.0.0.0"
},
"author": "NPr",
"license": "ISC",
"dependencies": {
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"body-parser": "^1.15.2",
"express": "^4.14.0",
"less": "^2.6.0",
"mongoose": "^4.6.3",
"react": "^0.14.6",
"react-dom": "^0.14.6"
},
"devDependencies": {
"babel": "5.x",
"babel-loader": "5._",
"babel-preset-es2015": "^6.16.0",
"css-loader": "^0.22.0",
"file-loader": "^0.8.5",
"json-loader": "^0.5.4",
"less-loader": "^2.2.2",
"react-hot-loader": "^1.3.0",
"style-loader": "^0.13.0",
"url-loader": "^0.5.6",
"webpack": "^1.12.12",
"webpack-dev-server": "^1.14.1"
}
}
_webpack-dev-server does not write anything to the file system*
The text was updated successfully, but these errors were encountered: