VARパスは=(「パス」)を必要とします。
module.exportsは= {
エントリ:path.join(__ dirnameは、 'インデックス')、
出力:{
パス:__dirname、
ファイル名:「bundle.js」
}、
モジュール:{
ルール:[
{
テスト:/\.css$/、
ローダー:[ 'スタイルローダー'、 'CSS-ローダー']
}
]
}
}。
webpack.config.jsファイルとして、コマンドを実行します。
WebPACKのindex.js -o bundle.js --mode =開発