Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
cadenmarinozzi committed Feb 17, 2024
1 parent fbbfac8 commit c64a1a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ module.exports = {

## Functional Usage

Scraipt can also be used easily with a functional approach. To do so, import `useScraipt` from the `scraipt` library and call it with your webpack configuration.
Scraipt can also be used easily with a functional approach. To do so, import `useScraipt` from the `scraipt/functional` library and call it with your webpack configuration.

`useScraipt(webpackConfig <optional Object>, options <optional Object>, framework <optional String>) => WebpackConfig`

Expand All @@ -228,7 +228,7 @@ Scraipt can also be used easily with a functional approach. To do so, import `us
### Example

```javascript
const { useScraipt } = require('scraipt');
const { useScraipt } = require('scraipt/functional');

module.exports = useScraipt(
{
Expand Down Expand Up @@ -293,6 +293,8 @@ npm run build-dev # Development (Uses tsc)
npm run build-production # Production (Uses webpack)
```

The built project will be in the `dist` directory.

## Testing

To run the tests, run the following command in the root of the project directory:
Expand Down

0 comments on commit c64a1a9

Please sign in to comment.