Hello,
I was going to start to learn reactjs with some tutorial videos on youtube and I had to install webpack, I followed the teacher moves but it’s not working right now.
I put on cmd “webpack” and it doensn’t work properly and give me an error “Output filename not configured.”
I have the following webpack.config.js:
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname,
filename: "scripts.min.js"
},
plugins: debug ? [] : [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
],
};
I also have the config file on the same folder as the all other things. The video I was watching is this one:
Someone ?
Thank you,
Rogério Dalot