Fetch the repository succeeded.
/*
* 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(),
]
},
];
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。