You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the webpack-copy-plugin to copy a fonts directory. As per this issue, the copy plugin can trigger infinite loops in the webpack watch process. The workaround is to explicitly ignore the files that change. In this case, we ignore public and fonts (as shown below). So in theory, it should work but it doesn't. And so there is a possibility that cosmos is ignoring the webpack watch ignore options:
// webpack config
// copy the folder
plugins: [
new CopyPlugin({
patterns: [{ from: "public/fonts/", to: "fonts/" }],
}),
],
// don't watch these folders but this seems to be ignored
watchOptions: {
ignored: ["**/fonts/", "**/public/"],
},
Steps to reproduce
Use the webpack copy plugin
Ignore the files that are copied
Make a change in cosmos, and watch webpack build forever :-)
The text was updated successfully, but these errors were encountered:
What's wrong?
We use the webpack-copy-plugin to copy a fonts directory. As per this issue, the copy plugin can trigger infinite loops in the webpack watch process. The workaround is to explicitly ignore the files that change. In this case, we ignore
public
andfonts
(as shown below). So in theory, it should work but it doesn't. And so there is a possibility that cosmos is ignoring the webpack watch ignore options:Steps to reproduce
The text was updated successfully, but these errors were encountered: