Ai
1 Star 0 Fork 0

lin/react-write-16.8

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
林鹤 提交于 2021-10-13 14:07 +08:00 . render
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path')
module.exports = {
entry: {
main: './src/index.js'
},
devServer: {
port: 9000,
},
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-react-jsx']
}
}
}
]
},
mode: "development",
optimization: {
minimize: false
},
plugins: [
new HtmlWebpackPlugin({
title: 'React',
template: path.join(__dirname, 'src/index.html') // 源模板文件
}),
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linhexs/react-write-16.8.git
git@gitee.com:linhexs/react-write-16.8.git
linhexs
react-write-16.8
react-write-16.8
master

搜索帮助