Sha256: 82136650869b1cda66d90d645301848879bb08c768f28bf837d71cd722dd4a8a

Contents?: true

Size: 789 Bytes

Versions: 47

Compression:

Stored size: 789 Bytes

Contents

# Yarn

Webpacker by default uses `yarn` as a package manager for `node_modules`


## Add a new npm module

To add any new JS module you can use `yarn`:

```bash
yarn add bootstrap material-ui
```

## Add an npm module to `devDependencies`
To add a new JS module that will only be available to local development:

```bash
yarn add --dev browser-sync
```

Be careful not to add any build or app related JS modules in this fashion. Adding JS modules to `devDependencies` [will block them from being installed in **any** production environment](https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-production-true-false).

Docs from JS modules may instruct you to use `--dev` or `devDependencies`, but this is generally under the assumption that you are using a `node.js` workflow.

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/docs/yarn.md
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/docs/yarn.md
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/docs/yarn.md
jetpacker-0.7.0 docs/yarn.md
webpacker-5.4.4 docs/yarn.md
jetpacker-0.6.0 docs/yarn.md
webpacker-5.4.3 docs/yarn.md
webpacker-5.4.2 docs/yarn.md
webpacker-5.4.1 docs/yarn.md
webpacker-5.4.0 docs/yarn.md
webpacker-5.3.0 docs/yarn.md
webpacker-5.2.2 docs/yarn.md
jetpacker-0.5.0 docs/yarn.md
webpacker-6.0.0.pre.2 docs/yarn.md
webpacker-6.0.0.pre.1 docs/yarn.md
webpacker-5.2.1 docs/yarn.md
webpacker-4.3.0 docs/yarn.md
webpacker-5.2.0 docs/yarn.md
webpacker-5.1.1 docs/yarn.md
webpacker-5.1.0 docs/yarn.md