Example-Frontend icon indicating copy to clipboard operation
Example-Frontend copied to clipboard

separate vendor and the app bundle

Open geyang opened this issue 9 years ago • 1 comments

Thanks for this great piece of work!

Would it be possible to compile the vendors into a separate script? I spent quite some time to get the tsify to work, but have had no luck getting browserify().require to work in generating a vendor script.

geyang avatar Nov 24 '15 22:11 geyang

Hi, what I do now at my current project, is to copy all foreign files to one directory. Normally I have vendor, bower_components and node_modules directories. The problem is that I want to be able to access libraries also from browser. This is good for example for compiling less files in browser when on development mode. But of course I can't simply allow access to those directories.

So right now I have another gulp task libs:install, which just copies all needed assets files to libs directory, which is accessible by browser. You can than call this script automatically after updating npm or composer dependencies.

davidkudera avatar Dec 06 '15 14:12 davidkudera