1 Star 0 Fork 0

daniel-dx/nice-hooks

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 623 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'lib'),
filename: 'index.js',
library: 'nice-hooks',
libraryTarget: 'umd',
},
externals: {
react: 'react',
'react-dom': 'react-dom',
},
module: {
rules: [
{
enforce: 'pre',
test: /\.(js|jsx)$/,
exclude: /node_modules/,
loader: 'eslint-loader',
options: {
fix: true,
},
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/danieldx/nice-hooks.git
git@gitee.com:danieldx/nice-hooks.git
danieldx
nice-hooks
nice-hooks
master

搜索帮助