-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
@@ -33,11 +30,6 @@ let memo; | |||
* @see {@link https://github.com/11ty/eleventy/issues/399} | |||
*/ | |||
const memoize = (collection) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning that was previously here was essentially noise (it logged every time you edited a file in dev mode) so I just removed it.
.eleventy.js
Outdated
@@ -91,6 +92,7 @@ const { | |||
} = require(`./${transformsDir}/service-worker-partials`); | |||
|
|||
module.exports = function (config) { | |||
console.log(`${chalk.black.bgGreen('Eleventy is building, please wait…')}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only happens once, right?
Also, super nit, the ${
doesn't really help here, we could just remove the wrapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, not sure if you're a fan, but we use fancy-log
in a few place which includes timestamp on the left. We could use it here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's why it doesn't help a ton. It happens when you first run npm run dev
but if you subsequently edit a file it won't log it again.
Also, super nit, the ${ doesn't really help here, we could just remove the wrapping.
oh right, I was combining strings earlier and then put it all into the same message. I'll fix it.
Deploy preview for web-dev-staging ready! Built with commit 9804445 |
This improves #3605 a little bit but doesn't fully fix the problem.
I think after Eleventy's
afterBuild
events ship in 1.0 we should be able to use https://www.npmjs.com/package/cli-spinner to show when a build is in progress or finished.