Skip to content

Commit

Permalink
fix: info build type before build start
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Feb 21, 2021
1 parent 392c145 commit 6951858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/index.js
Expand Up @@ -45,6 +45,8 @@ const run = () => {
const entryPath = getEntryPath();
const options = loadFile(entryPath, 'rollup.config.js');

console.info(`generating ${process.env.NODE_ENV} builds....`);

const bunder = new Bundler(options, {
generateOutputLogs: flags.silent !== true,
});
Expand Down
1 change: 0 additions & 1 deletion src/modules/Bundler.ts
Expand Up @@ -350,7 +350,6 @@ class Bundler {
* runs the process
*/
async process() {
console.log(process.env.NODE_ENV);
const config = this.config;
const startAt = path.resolve(this.entryPath, config.srcDir);

Expand Down

0 comments on commit 6951858

Please sign in to comment.