brickspert / blog

个人技术博客,博文写在 Issues 里。
4.07k stars 548 forks source link

遇到相同的问题,兄弟你最后是怎么解决的? #28

Closed fengweiyuan closed 4 years ago

fengweiyuan commented 5 years ago

` const path = require('path');

module.exports = {

/*入口*/
entry: path.join(__dirname, 'src/index.js'),

/*输出到dist文件夹,输出文件名字为bundle.js*/
output: {
    path: path.join(__dirname, './dist'),
    filename: 'bundle.js'
}

}; ` webpack.dev.config.js 文件

Originally posted by @ntuwang in https://github.com/brickspert/blog/issues/1#issuecomment-469155857

ntuwang commented 5 years ago

我也没搞定,换了个教程。。。