Skip to content

Managing static assets (images, fonts, etc...) #1087

Discussion options

You must be logged in to vote

@milesj Thanks for your quick and great answer.

What I have done based on your answer :

# apps/project-1/moon.yml
dependsOn:
  - 'lib-assets' # for good project graph and dependencies

tasks:
  dev-spa:
    deps:
      - 'sync-icons' # to be sur they are in place for dev
    command: 'quasar dev -m spa'
    local: true

  dev-pwa:
    deps:
      - 'sync-icons' # to be sur they are in place for dev
    command: 'quasar dev -m pwa' 
    local: true

  build:
    deps:
      - 'sync-icons' # to be sur they are in place for build
    command: 'quasar build -m pwa'

  sync-icons:
     command: 'ln -sfn $workspaceRoot/libs/assets/icons $projectRoot/public/icons'
     platform: 'system'
     in…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@milesj
Comment options

Answer selected by nathan-de-pachtere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants