1 Star 1 Fork 0

包子/tile-lnglat-transfrom-es6

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 878 Bytes
一键复制 编辑 原始数据 按行查看 历史
aliothor 提交于 2021-09-14 22:55 +08:00 . 增加使用库说明和配置注释
const paths = require("./paths");
module.exports = {
// 入口
entry: {
index: "./src/index.js",
},
// 输出
output: {
// bundle 文件名称
filename: "[name].js",
// bundle 文件路径
path: paths.resolveApp("build"),
// 编译前清除目录
clean: true,
//输出umd模式库配置
globalObject: "this",
library: {
name: "TileLnglatTransform",
type: "umd2",
},
},
mode: "production",
// 开发工具,开启 source map,编译调试
devtool: "eval-cheap-module-source-map",
resolve: {
extensions: [".js"],
},
module: {
rules: [
{
test: /\.(js|ts)$/,
include: paths.appSrc,
use: [
{
loader: "esbuild-loader",
options: {
target: "es2015",
},
},
],
},
],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/javabaozi/tile-lnglat-transfrom-es6.git
git@gitee.com:javabaozi/tile-lnglat-transfrom-es6.git
javabaozi
tile-lnglat-transfrom-es6
tile-lnglat-transfrom-es6
master

搜索帮助