Association module for NODE.JS

ASP.NET MVC 4 introduced an amazing tool for combining multiple stylesheets or javascripts in one of the following ways:

bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.theme.css")); 

Does NODE.JS have any modules for performing the same task - for combining client javascript libraries into one? I saw tools like browserify, uglifier, etc., but this requires manually invoking console commands (or could I have missed something?). Meanwhile, it would be nice to eliminate this excessive step and have middleware that can be easily integrated into the express.js application, for example.

+7
source share
3 answers

There are several attempts to implement this, you can try them and see which ones are best for you: bundle-up , brewer.js , connect-assetmanager

+3
source

Not to mention the automatic complication of stylus files in a single css file, also suitable for use as middleware.

Look for npm for an “asset,” and I'm sure you can find them.

+2
source

You can also try bl-bundler . It also supports integration with express.js

0
source

All Articles