1 Star 0 Fork 0

JCBOY/jsencrypt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
dpronin 提交于 2017-12-20 18:12 . attempts to build library
"use strict";
const resolve = require('rollup-plugin-node-resolve');
const uglify = require('rollup-plugin-uglify');
const replace = require('rollup-plugin-replace');
const pkg = require('./package.json');
var plugins = [
resolve(),
// uglify({
// mangle: true,
// warnings: true,
// output: {
// beautify: false,
// },
// compress: {
// join_vars: true,
// if_return: true,
// properties: true,
// conditionals: true,
// warnings: true,
// dead_code: true,
// drop_console: true,
// drop_debugger: true,
// }
// }),
replace({
'JSENCRYPT_VERSION': JSON.stringify(pkg.version)
})
];
module.exports = {
input: "./src/index.js",
plugins: plugins,
name: "JSEncrypt",
output: {
file: pkg.main,
format: 'umd',
name: "JSEncrypt",
exports: "named"
},
// { file: pkg.module, format: 'es' }
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jcboy/jsencrypt.git
git@gitee.com:jcboy/jsencrypt.git
jcboy
jsencrypt
jsencrypt
master

搜索帮助