Skip to content

Commit

Permalink
create bundle using bundle-me
Browse files Browse the repository at this point in the history
  • Loading branch information
pajaydev committed Oct 6, 2018
1 parent 93635e4 commit 61165a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

const parseArgs = require('minimist');
const lassoAnalyzer = require('../src/index');

const bundleMe = require('bundle-me');
const argv = parseArgs(process.argv.slice(2));
const borderX = `${Array(30).join('-')}\n`;
const input = argv._ || [];

if (input.length > 0) {
input.map((fileName) => {
lassoAnalyzer(fileName);
bundleMe({ path: fileName, outputPath: 'lasso-analyze.js' }).createBundle;
lassoAnalyzer('lasso-analyze.js');
});
const startLog = `${borderX}` + `lasso-analyze.html is created \n` +
`${borderX}`;
Expand Down

0 comments on commit 61165a3

Please sign in to comment.