Answer the question
In order to leave comments, you need to log in
Gulp and ReactJS How to create one file?
Hello,
I have an almost finished project that consists of many .jsx files with many require inside. The project also consists of a fairly deep file structure. The goal is to create one .js file. The entry point is index.js and index.html where everything is embedded. At the moment, WebPack is used for on-the-fly compilation.
Gulp already packs and processes assets (including .scss). It remains the case for the "small" - work with .jsx. Google was able to help partially, but the approaches are quite different. Tried a lot of examples, but didn't get the result. All require require browserify. Can anyone help with some good advice or gulp.task * ohm that will help solve the problem?
Thanks
Answer the question
In order to leave comments, you need to log in
Keep using webpack. Just create a task that will collect js through webpack.
To bundle gulp and webpack, there is a webpack-stream package (gulp-webpack)
An example of how I use .
I spied on Ilya Kantor in his screencast Gulp Screencast - Gulp and Webpack Integration
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question