I’m totally new to bundling and React, and I was wondering how can I use GULP on my gomix project.
I searched in the forum but only could find this post saying that we can
use grunt/gulp as you normally would
Reading the gulp documentation, I see that I have to create a gulpfile.js to declare my tasks and then type gulp in the command line. But there is no command line on Gomix.
I have the following file structure :
server.js
package.json
Client
App.js
Component1.js
Component2.js
…
public
index.html
What is the best approach to minify the client-side js and serve it as a bundle in Gomix ?
I guess there are several things that I don’t understand, could you please enlight my path ?
One way you could do it is using another npm script stage, like in our Grunt example - the grunt script runs at the prepublish stage so it’s ready for when start gets called - https://gomix.com/#!/project/grunt-js.
You could also run a bash script from the start command, which allows you to put multiple commands in a .sh file.
In my package.json but once Finished 'default' after 17 μs is done, the server doesn’t start. Also, the log loader and the one next to “show live” keep spinning.