打开test/index.html 一直提示 ReactDOM is not defined ,找不到原因,打包都成功了,求解
来源:7-5 webpack--entry、output

小龙_0011
2018-01-12
const path = require("path");
module.exports = {
entry: {
index: './src/script/index.js'
},
output: {
path: path.resolve(__dirname, "build/script"),
filename: '[name].js'
},
module: {
rules: [
{
test: /\.js$/,
include: [
path.resolve(__dirname, 'src/script')
],
loader: 'babel-loader',
}
]
}
};
写回答
1回答
-
Samaritan
2018-01-14
信息有些简陋啊?贴出 github 地址和报错来怎么样?
00
相似问题