Files are read from file system instead vinyl
See original GitHub issueI’m using webpack-stream
with gulp-preprocess, and in some file I have a someVar = /* @echo CONFIG */
which is processed by gulp-preprocess
and become someVar = { foo: "bar" }
in order to expose the configuration to the client.
But I noticed that webpack-stream
is just reading the contents from the original file in the file system instead the processed, so babel-loader gives syntax error, since someVar = /* @echo CONFIG */
is not valid javascript.
I created this sample repo to easily reproduce the problem.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:12
- Comments:9
Top Results From Across the Web
gulpjs/vinyl-fs: Vinyl adapter for the file system. - GitHub
Returns a stream of vinyl File objects. Note: UTF-8 BOM will be removed from all UTF-8 files read with .src unless disabled in...
Read more >Vinyl | gulp.js
A virtual file format. When a file is read by src() , a Vinyl object is generated to represent the file - including...
Read more >README.md - Leonard
[Vinyl][vinyl] is a very simple metadata object that describes a file. ... __Note: UTF-8 BOM will be removed from all UTF-8 files read...
Read more >Files-11 - Wikipedia
Files-11 is the file system used by Digital Equipment Corporation OpenVMS operating system, and also (in a simpler form) by the older RSX-11....
Read more >Gulp - Handle read-only permissions for dest files?
I wanted to clarify to myself that it does not work on the file system but on the (yet-to-be-written-to-the-file-system-via-.dest) vinyl files in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or, better yet, you’ll have to run two tasks in series:
In the meanwhile, I’ve made my own plugin that actually uses the file system that was passed into it instead of
fs
. You can see it here.