配置 entry 和 output

// 配置 entry 和 output
entry:{
    main:'./src/index.js',
    // sub:'./src/index.js'
},
output:{
    // filename: 'dist.js',
    // publicPath:'http:///www.cdn.com',  // js 前缀
    filename: '[name].js',
    path:path.resolve(__dirname,'dist')
},
posted @ 2021-11-25 13:53  13522679763-任国强  阅读(38)  评论(0)    收藏  举报