Skip to content

Commit

Permalink
Merge pull request #14 from vio/output-outside-compilation
Browse files Browse the repository at this point in the history
feat: Output the stats with fs
  • Loading branch information
vio authored Dec 24, 2024
2 parents e530e13 + fd8abae commit 1dc06ec
Show file tree
Hide file tree
Showing 10 changed files with 1,634 additions and 1,784 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ runs:
- name: "Resolve caching"
id: cache
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }}
run: echo "node_cache=npm" >> $GITHUB_STATE
run: echo "node-cache=npm" >> "$GITHUB_OUTPUT"
shell: "bash"

- name: "Setup Node.js"
uses: actions/setup-node@v4.1.0
with:
node-version-file: ".nvmrc"
cache: ${{ env.node_cache }}
registry-url: "https://registry.npmjs.org"
cache: ${{ steps.cache.outputs.node-cache }}

- name: "Install dependencies"
run: npm ci
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ module.exports = {

### Options

- `fileName` - the JSON filename relative to the build folder, default: `stats.json`
- `fileName` - the JSON filepath relative to the build folder or absolute(default: `stats.json`)
- `write` - format and write the stats to disk(default: `fs.write(filename, JSON.stringify(stats, null, 2))`)
- `stats`
- `source` - output asset/chunk/module source (default `false`)
- `excludeAssets` - exclude matching assets: `string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>`
Expand Down
Loading

0 comments on commit 1dc06ec

Please sign in to comment.