Skip to content

Commit

Permalink
Adjust for Rails Assets Pipeline or Sprockets from CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Dec 8, 2023
1 parent 2e4b85e commit e5ffa35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/importing-css-assets-and-javascript/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ Bundlers like [Browserify](http://browserify.org/) can use `require()` to import
const { Accordion } = require('govuk-frontend')
```

Sprockets (Ruby library) can use `require` directives to import UMD bundles:
Rails Assets Pipeline or Sprockets can use `require` directives to import UMD bundles:

```javascript
// = require govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js
// = require govuk/components/accordion/accordion.bundle.js
const { Accordion } = window.GOVUKFrontend;
```

Expand Down

0 comments on commit e5ffa35

Please sign in to comment.