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

preprocess requires files to exist even @if they will not be included #122

Open
dtsamitros opened this issue Mar 10, 2017 · 0 comments
Open

Comments

@dtsamitros
Copy link

I have the following optional include

// @if PROJ_BUILD='dynamic'
// @include dynamic_script.js
// @endif

even if PROJ_BUILD is not 'dynamic' still the file is still required to exist in the filesystem although it will not be included and an error is raised

node_modules\preprocess\lib\preprocess.js:380
      throw new Error(errMsg);
            ^
Error: dynamic_script.js requested from main.min.js not found!

I know there is the fileNotFoundSilentFail option but it does not feel right to use in this case

Thank you,
Dimitris

@dtsamitros dtsamitros changed the title preprocess requires files to exist even if they will not be included preprocess requires files to exist even @if they will not be included Mar 10, 2017
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

1 participant