brickspert/blog

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

fengweiyuan opened this issue · 1 comments

`
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 #1 (comment)

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