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

output dir cannot contain directories #3

Open
stevenvachon opened this issue Jan 16, 2019 · 2 comments
Open

output dir cannot contain directories #3

stevenvachon opened this issue Jan 16, 2019 · 2 comments

Comments

@stevenvachon
Copy link

stevenvachon commented Jan 16, 2019

concat: {
    outputs: [{
        file: '/concat.js',
        inputs: ['file1.js', 'file2.js']
    }]
},
files: ['/concat.js']

results in:

ERROR [preprocess]: Can not load "concat"!
  Error: ENOENT: no such file or directory, open '/project//concat.js'

My goal was to use require('os').tmpdir().

@stevenvachon
Copy link
Author

Even relative paths containing directories does not work:

concat: {
    outputs: [{
        file: 'concats/concat.js',
        inputs: ['file1.js', 'file2.js']
    }]
},
files: ['concats/concat.js']

results in:

ERROR [preprocess]: Can not load "concat"!
  Error: ENOENT: no such file or directory, open '/project/concats/concat.js'

which occurs before the file has a chance to be built.

@stevenvachon stevenvachon changed the title output dir cannot be absolute output dir cannot contain directories Jan 20, 2019
@stevenvachon
Copy link
Author

@JCThePants hello?

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