Common Assets

Summary

This packages hold assets for Dendron Views. During the build step, assets from this package are concatenated and copied into NextJS Template and Dendron Plugin Views (TODO: need to refactor logic from dendron-plugin-views, currently assets are being built separately there).

  • NOTE: we are currently moving away from dendron-next-server and transferring all css and assets from it to common-assets
    • last updated: 2021-11-18

Layout

  • common-assets
    • assets/
      • css/
        • prism/
          • dark.css
          • light.css
        • antd/
          • dark.css
          • light.css
        • ...

LifeCycle

  1. User runs yarn setup in Dendron monorepo
  2. The last step after all packages are build, is running
    dendron dev sync_assets --fast
    
    // Takes assets from different monorepo packages and copies them over to the plugin
    syncAssets {
        // sync assets to plugin
        syncStaticAssets
        syncStaticAssetsToNextjsTemplate
    }
    

Backlinks