猿来学院Python爬虫高级开发从入门到精通+实战案例全景分析
转换这些文件,使其能被添加到依赖图中(使用
use
属性)
webpack.config.jsmodule.exports = {
entry: './path/to/my/entry/file.js',
output: {
path: path.resolve( __dirname, 'dist' )
filename: 'my-first-webpack-bundle.js'
},
module: {
rules: [
{
// 遇到匹配的文件,使用 loader 进行转换