webpackを実行すると、「エラー:出力ファイル名が必要です」という設定ファイルまたは--output-filenameのいずれかが表示されます。webpackの出力ファイル名の設定エラー
設定ファイルの名前はwebpack.config.jsと正しくあり、ルートディレクトリにもあります。
がvar path = require('path');
var webpack = require('webpack');
module.exports - {
entry: './app.js',
output: { path: __dirname, filename: 'bundle.js' },
module: {
loaders: [
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node-modules/,
query: {
presets: ['es2015', 'react']
}
}
]
},
};
本当にあなたは構文エラーを持っている
"module.exports - {" - > module.exports ** = ** {' –