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 tocommon-assets
- last updated: 2021-11-18
Layout
- common-assets
- assets/
- css/
- prism/
- dark.css
- light.css
- antd/
- dark.css
- light.css
- ...
- prism/
- css/
- assets/
LifeCycle
- User runs
yarn setup
in Dendron monorepo - The last step after all packages are build, is running
dendron dev sync_assets --fast
- this runs the following
- loc: ../packages/dendron-cli/src/commands/devCLICommand.ts (Private)
// Takes assets from different monorepo packages and copies them over to the plugin syncAssets { // sync assets to plugin syncStaticAssets syncStaticAssetsToNextjsTemplate }
- syncStaticAssets: ../packages/dendron-cli/src/utils/build.ts (Private)
- syncStaticAssetsToNextjsTemplate: ../packages/dendron-cli/src/utils/build.ts (Private)
Related
Backlinks