Example-Frontend
Example-Frontend copied to clipboard
separate vendor and the app bundle
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.
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.