Closed
Description
Stencil version:
@stencil/core@^1.3.0
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Story file is inserted in the final dist collection folder
Expected behavior:
Prevent the story file that goes in the same directory as my component from being inserted in the final collection dist folder
Steps to reproduce:
I have the following structure:
stencil
│
└───dist
│ └───collection
│ └───components
│ └───image-container
│ image-container.css
│ image-container.js
│ image-container.stories.js //this file shouldn't be here
│
└───src
└───components
└───image-container
image-container.css
image-container.tsx
image-container.stories.js // this file is located here
Related code:
In my stencil.config.js
I have:
export const config: Config = {
namespace: 'stencil',
plugins: [
postcss({
plugins: [
postcssCustomProperties({preserve: false}),
],
})
],
excludeSrc: ['**/*.stories.*'],
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'docs-readme'
},
{
type: 'www',
serviceWorker: null, // disable service workers
}
]
};
but it still copies the file.