Skip to content

Commit

Permalink
Merge branch 'main' into post-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheu authored Jul 24, 2023
2 parents 626e3b9 + 171d597 commit a705ded
Show file tree
Hide file tree
Showing 2 changed files with 3,187 additions and 3,007 deletions.
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ When you're done, you can unlink the package by running the following:
npm unlink @humanmade/block-editor-components
```

**Note on usage with `@humanmade/webpack-helpers`:** You may hit eslint errors trying to build your assets when linked to a local copy of this. As a workaround, you need to restrict eslint to the current project directory when configuring your webpack build. Do this by filtering the loader options.

```
const path = require( 'node:path' );
presets.production( {
// ...
}, {
filterLoaders: ( loader, loaderType ) => {
// Handle symlinked node_modules.
if ( loaderType === 'eslint' ) {
loader.include = path.dirname( path.resolve( __dirname ) );
}
return loader;
}
} );
```

### Automatic Build

Whilst developing, it is useful have Webpack watch for changes and rebuild the distributed files automatically.
Expand Down
Loading

0 comments on commit a705ded

Please sign in to comment.