Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

[QUESTION]how to ignore stories.js files from ./src when performing nwb build-react-component #576

Open
adamchenwei opened this issue Dec 30, 2021 · 1 comment

Comments

@adamchenwei
Copy link

I searched numbers of articles in google and read through their doc(https://github.com/insin/nwb/blob/master/docs/Commands.md#nwb-build) and issues, I can't find anything. but my nwb build brings in .stories.js files into the ./dist directory after built. I store stories.js files alone side my component files in ./src for easier access and update stories.

I can't find any relevant config can somehow ignore the stories.js files in src file so they won't be generated when I run command like following: nwb build-react-component --copy-files --no-demo

Any idea or suggestions?

@Stunext
Copy link

Stunext commented Mar 25, 2022

Maybe, you should be able to write .babelrc

{
  "ignore": [
    "**/*.stories.js"
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants