Skip to content

Latest commit

 

History

History

yarn-pnp

Welcome to Remix!

This is a very basic example of a Remix app, using the Remix App Server and Yarn PnP.

Development

From your terminal

yarn install
yarn dev

This starts your app in development mode, rebuilding assets on file changes.

Deployment

First, build your app for production:

yarn build

Then run the app in production mode:

yarn start

Notes for Using Yarn PnP

  • You'll need to use Yarn ≥ v3.2.0. Older versions don't work because of an issue with Yarn.
  • For editor support of PnP, refer to Editor SDKs.
  • When using TypeScript, consider installing the Yarn TypeScript plugin.
  • For the ~/* alias to work for imports relative to app/*, you have to add this to your package.json:
    "dependencies": {
      /* ... */
      "~": "link:app/"
    }
    You can then also remove the ~ alias from your tsconfig.json.
  • For only installing non-dev dependencies in production, you can use yarn workspaces focus after removing the .yarn/cache directory:
    yarn install
    yarn build
    rm -r .yarn/cache
    yarn workspaces focus --production
    yarn start
    Or check out plugin-installs by Larry1123.