Skip to content
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

Question: Exclude #68

Closed
eluchsinger opened this issue Mar 11, 2019 · 3 comments
Closed

Question: Exclude #68

eluchsinger opened this issue Mar 11, 2019 · 3 comments

Comments

@eluchsinger
Copy link

I ran into a problem while trying to exclude some file extensions. How can I exclude all files ending with .config, .overrides or .variables?

I tried following, but apparently it didn't work:

adjustWorkbox(wb =>
        Object.assign(wb, {
            skipWaiting: true,
            exclude: (wb.exclude || [/\.(config|overrides|variables)$/]).concat("index.html")
        }))

More context:
https://stackoverflow.com/a/48608002/2632991
and
Semantic-Org/Semantic-UI-LESS#37

@arackaf
Copy link
Owner

arackaf commented Mar 11, 2019

Exclude those extensions from what? adjustWorkbox is for changing the Workbox confiruation, and I don't think Workbox uses an exclude value.

@geminiyellow
Copy link

hi @arackaf , how to add babel Exclude path?

@with-heart
Copy link
Collaborator

with-heart commented Jul 2, 2019

@eluchsinger The exclude in the linked SO topic is from file-loader, and we don't currently offer a way to modify loader configurations. You could create your own function that does that though.

@geminiyellow We currently don't have a way to do that, but I've opened #110 to address that.

Closing this issue.

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

No branches or pull requests

4 participants