When attempting to run Webpack, I keep encountering an error that simply states "ERROR in missing path." However, the error disappears when I remove the module key from the configuration provided below:
module.exports = {
entry: './client/scripts/app.js',
output: {
path: './docs/scripts/',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.js$/,
loader: 'ng-annotate!',
exclude: /node_modules|docs\/bower_components/
}],
}
};
The error message displayed is as follows:
Hash: 396f0bfb9d565b6f60f0
Version: webpack 1.13.1
Time: 76ms
+ 1 hidden modules
ERROR in missing path
My webpack configuration file is located at the root of my project directory. For reference, the folder structure is outlined below:
client
scripts
app.js
node_modules
docs
scripts
bundle.js
bower_components
webpack.config.js