Exclude and remove of files do not appear to be working #503
Replies: 2 comments
|
Exclude option is NOT to exclude files from build. It's for css, js and components to not be imported in your html page. https://nuejs.org/docs/settings.html#exclude I don't think, there's a proper option for excluding files from a build, currently. (See #198). For now, just prefixing the dirs with a dot might work, but I would have to check that myself. That might be a dev build problem. Have you tried building with production flag ( I can take a look, if this still happens on prod build, but I personally will just have time for this, in a few days. |
|
Right, I use the dot prefix to hide directories. |
Uh oh!
There was an error while loading. Please reload this page.
Hello, I added the
exclude: [trash, video]in thesite.yamlbut those directories keep being included. What is the trick to avoid then to be included in the build? Additionally, i added a new filetest.mdin the project root. Then i build and it generated a test,html in.dist/devbut when i deleted the original file test.md, the next build, did not delete the file test.html.Shouldn't being updated and delete the test.html automaticaly?
Thanks.
All reactions