1 Star 0 Fork 30

xujinxin / Hooker Js

forked from 苍石 / Hooker Js 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 594 Bytes
一键复制 编辑 原始数据 按行查看 历史
苍石 提交于 2020-10-23 13:22 . refactor for npm
const path = require('path');
module.exports = env => {
return {
mode: env.production === 'true' ? 'production' : 'none',
//entry:需要打包的文件
entry: './src/hooker.js',
output: {
// filename:指定打包后js文件的名字
filename: env.production === 'true' ? 'hooker-mini.js' : 'hooker.js',
//path:指定打包后的文件放在那里
path: path.resolve(__dirname, "build"),
libraryTarget: "umd",
globalObject: "typeof self !== 'undefined' ? self : this"
}
}
};
JavaScript
1
https://gitee.com/laoniuyeye/hooker-js.git
git@gitee.com:laoniuyeye/hooker-js.git
laoniuyeye
hooker-js
Hooker Js
master

搜索帮助