Skip to content

Commit

Permalink
Twist logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Aug 26, 2023
1 parent dbdae74 commit e64c803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import pluginList from './plugin-list.js';
// {name: path} // pure javascript
// {name: [path, true]} // javascript + typescript

let prefix = 'rex';
let outputs = [];

for (var key in pluginList) {
Expand All @@ -26,8 +27,8 @@ for (var key in pluginList) {
}

// Export no-uglify files
let outFile = `./dist/rex${key}.js`;
let libName = `rex${key}`;
let libName = `${prefix}${key}`;
let outFile = `./dist/${libName}.js`;
// console.log(inputFile)
// console.log(outFile)
// console.log(libName)
Expand Down Expand Up @@ -65,7 +66,7 @@ for (var key in pluginList) {

// Export uglify files
let inputFile2 = outFile;
let outFile2 = `./dist/rex${key}.min.js`;
let outFile2 = `./dist/${libName}.min.js`;
outputs.push({
input: inputFile2,
output: {
Expand Down

0 comments on commit e64c803

Please sign in to comment.