-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single entry #11
Comments
Hi @ezekielchentnik. Yep, we can use // felt.config.js
module.exports = {
patterns: ['entry.js']
} Then, See also https://github.com/cognitom/felt#optspatterns updated: |
@cognitom does not seem to work. when i specify the pattern, client/entry.js is not ran through rollup. here is what I'm going for (I'm looking to use felt as middleware, then export if needed): Source: /src
/images
logo.png
/components
App.jsx
/styles
_partial.css
global.css # postcss's entry point
entry.js # rollup's entry point Dist: /dist
/images # entire directory copied
entry.js # bundle generated by rollup
global.css # bundle generated by postcss |
@cognitom i've debugged and patterns solution works, however even when limiting by entry.js, files in sub folders are still copied, Is there a way to completely ignore a whole folder? |
This appears to work: module.exports = {
patterns: ['entry.js'],
excludes: ['components/*.js']
} src /src
/components
App.jsx
entry.js dist /dist
entry.js felt --config felt.config.js --src src --export dist --debug excludes seems to be un documented. Also, I'm attempting to figure out a better pattern for all sub folders under src |
this pattern seems to work: module.exports = {
excludes: ['!entry.js', '**/']
} |
@ezekielchentnik perfectly right! Sorry for my misleading.
I think, we could add |
@cognitom an option to whitelist folders may be a better option? i like the option of for more complex projects, maybe adding a whitelist src:
dist:
felt.config.js module.exports = {
patterns: ['entry.js', 'global.css'],
exclude:[],
include: ['images', 'vendor'],
handlers: {
'.js': rollup(),
'.css': postcss()
}
} |
Yeah, |
Is there a way to limit to a single entry point?
example: /client/entry.js (rollup bundles from entry)
ignores everything else in /client
The text was updated successfully, but these errors were encountered: