menu

Twill

Rapidly create a custom admin console that content publishers will love. Twill is an open source CMS toolkit for Laravel, crafted by AREA 17.

Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Feature requests
view-forward
# Help
view-forward
# Jobs
view-forward
# Product vision
view-forward
# Resources
view-forward
# Show and tell
view-forward
# Tips and tricks
view-forward
Team

Why does `npm run twill-build` take so long?

April 24, 2019 at 2:14pm

Why does `npm run twill-build` take so long?

April 24, 2019 at 2:14pm
It takes me 5-10mins to run and seems like it reinstalls node packages every time. Is there no way to shorten this?

April 24, 2019 at 4:21pm
Which twill version are you using? This issue should be fixed in 1.2.1 with updating to Laravel Mix 4. https://github.com/area17/twill/pull/113
  • reply
  • like

April 25, 2019 at 3:20pm
You can also use hot-reloading so that it only builds the changes each time for development environments.
Occasionally I will have to force a full rebuild if I change an existing block's functionality though.
  • reply
  • like

May 3, 2019 at 10:15am
I'm running 1.2.1 with the scripts mentioned in the docs. This is what's taking up all the time: npm WARN prepare removing existing node_modules/ before installation It seems to reinstall all node_modules everytime.
  • reply
  • like

May 6, 2019 at 4:49pm
Hi , we are using npm ci instead of npm install to make sure all Twill users share the same dependencies. It would be a nightmare if Twill install was downloading different libraries version for each users, ignoring our package-lock.json. Read more here https://docs.npmjs.com/cli/ci. I think there's an opportunity to avoid it when developing though, as those dependencies wouldn't change unless you are updating Twill. I think we should add an option to bypass npm ci in twill-build when in development.
  • reply
  • like

June 7, 2019 at 8:16am
Hai! Any developments on this issue?
  • reply
  • like
It's this bit that seems to take forever cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
  • reply
  • like