Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Webpack几乎不编译任何东西_Node.js_Webpack_Webpack Dev Server - Fatal编程技术网

Node.js Webpack几乎不编译任何东西

Node.js Webpack几乎不编译任何东西,node.js,webpack,webpack-dev-server,Node.js,Webpack,Webpack Dev Server,我正在尝试使用Webpack将我所有的JS文件合并成一个 //webpack.config.js const path=require('path'); const webpack=require('webpack'); module.exports={ 条目:{ 供应商:[ “./src/index.js”, “./src/test.js” ] }, 输出:{ 文件名:“vendor.js”, path:path.resolve(uu dirname,'dist'), } }; 当我编译它(

我正在尝试使用Webpack将我所有的JS文件合并成一个

//webpack.config.js
const path=require('path');
const webpack=require('webpack');
module.exports={
条目:{
供应商:[
“./src/index.js”,
“./src/test.js”
]
},
输出:{
文件名:“vendor.js”,
path:path.resolve(uu dirname,'dist'),
}
};
当我编译它(
“build”:“webpack--config webpack.config.js”
)时,
vendor.js
为空。但是,如果
index
test
包含
alert()。我做错了什么