CSS Bundles

testIndex is the bundle name, you will be able to call gulp css_testIndex to
build it.

Apart from the common options, here are the options you can use for CSS bundles.

Option

Type

Runner

Preset

Description

extractCSS

Boolean / String / Object

Webpack

crafty-preset-postcss

This will extract the CSS out of the bundle, all Official options work, you can also pass true which will use [bundle]-[name].min.css as file name, you can use [bundle] in the file name which is replaced by your bundle name.

This will merge all files together, outputting a single file. (This doesn’t resolve imports, use Webpack or rollup.js for this)

JavaScript External assets

By default, all bundlers include all external dependencies in the final bundle,
this works fine for applications, but if you wish to build a multi-tenant
application or a library, you don’t wish to include all dependencies, because
you’ll end up with the same dependency more than one time.

The externals option allows you to define a list of libraries that are
provided and should not be embedded in the build, here is an example :