1 Star 0 Fork 0

haiyoucuv/webgl_hit_bricks

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
rollup.prod.js 937 Bytes
Copy Edit Raw Blame History
qiuxu authored 2021-12-16 10:45 . init
/*
* rollup.prod.js
* Created by 还有醋v on 2021/9/2.
* Copyright © 2021 haiyoucuv. All rights reserved.
*/
const json = require("@rollup/plugin-json");
const resolve = require("@rollup/plugin-node-resolve").default;
const typescript = require("@rollup/plugin-typescript");
const commonjs = require("rollup-plugin-commonjs");
const progress = require("rollup-plugin-progress");
const { terser } = require("rollup-plugin-terser");
const replace = require("rollup-plugin-replace");
const glslify = require("rollup-plugin-glslify");
module.exports = [
{
input: "src/index.ts",
output: {
file: "dist/q3.js",
format: "umd",
sourcemap: true,
name: "q3",
},
plugins: [
progress(),
replace({
ENV: JSON.stringify(process.env.NODE_ENV || 'prod'),
}),
resolve({ preferBuiltins: true }),
typescript({ sourceMap: true, watch: false }),
commonjs(),
json(),
glslify(),
terser(),
]
},
];
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haiyoucuv/webgl_hit_bricks.git
git@gitee.com:haiyoucuv/webgl_hit_bricks.git
haiyoucuv
webgl_hit_bricks
webgl_hit_bricks
master

Search