Is the only way to break up my client
So I have a few CoffeeScript files, and they are starting to get quite long, I was expecting the process of refactoring them into smaller files to be just a case of breaking them up, like it is with Less and Jade.
Although it seems the only straight-forward way of doing this is creating modules and exporting them, then use Browserify to bundle everything together.
There are two problems I'm having with Browserify:
the exported code, seems to still have the require module code in it, which then results in a 404, for eample:
myModules = require('../scripts/example-sub.coffee');
I already have a gulp build process in place that watches my scripts for changes, then lints them, compiles into js, minifys and does whatever else combined with browser-sync and nodemon to keep the server refreshed. It doesn't seem like it is possible to combine this type of process with browserify - Is that incorrect, if so how could this be achieved?
上一篇: 咕嘟+ babelify + browserify问题
下一篇: 是分手我的客户的唯一途径