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

Compiling to the same folder deletes all files #5

Open
deepblue08 opened this issue Dec 4, 2015 · 1 comment
Open

Compiling to the same folder deletes all files #5

deepblue08 opened this issue Dec 4, 2015 · 1 comment

Comments

@deepblue08
Copy link

If you run this command, it won't just compile your .dust files, but it will also destroy any js files that are currently in there. Very unexpected bahavior. Lost several days of KnockoutJS work.

duster --no-concat views views

@asztal
Copy link

asztal commented Dec 4, 2015

Hi,

Sorry you lost your code. Hope there wasn't too much of it...

It's unfortunate but I'm not sure I see an easy way round it. Having the same input and output directory could be a valid scenario, if there aren't already JS files in the dust directory. The reason it overwrites the output files is that it assumes they are there from a previous compilation.

Honestly my recommendation is to consider using webpack (or something similar like browserify) with dustjs-linkedin-loader. It's robust, configurable and well-maintained.

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

2 participants