Several loaders are available for the liferay-npm-bundler by default:
copies source files (static assets) to the output folder.
object, so you can include JSON files with the
sass on source files. This lets you generate static CSS
files. It can be chained before
the DOM once it’s loaded. This lets you include CSS files with a
See the liferay-js-toolkit loaders showcase for an example use case of the liferay-npm-bundler’s loaders. If the default loaders don’t meet your requirements, you can follow the instructions in Creating Custom Loaders for the Bundler to create your own loaders.