-
Notifications
You must be signed in to change notification settings - Fork 40
List of loaders
⚠️ The contents of this wiki have been migrated to theliferay/liferay-frontend-projectsmonorepo and more specifically to the to themaintenance/projects/js-toolkit/docsdirectory. Development and updates will continue there, and this repo will be archived (ie. switched to read-only mode).
👀 Please get in contact with us (filing an issue, for example) if you have created a loader that may be of interest to the general public and want to make it appear in this list.
👀 If you want to see loaders in action, you may have a look the liferay-js-toolkit-showcase for loaders.
This list contains all loaders known to the maintainers of this project. Note
that there can be loaders that are not contained in this project and thus not
maintained by us (they are marked with *).
-
babel-loader: runs babel on source files. It can be used to avoid an extra build step before the bundler.
-
copy-loader: copies source files to output folder. It is useful to copy static assets to the output folder.
-
css-loader: converts a CSS file into a
.jsmodule that inserts a in the DOM when loaded. It is useful to be able torequire()CSS files. -
json-loader: generates
.jsmodules that export the contents of an static.jsonfile as an object. It is useful to be able torequire()JSON files. -
sass-loader: runs node-sass or sass on source files. It can be used to generate static
.cssfiles or chained beforestyle-loader. -
style-loader: converts a CSS file into a
.jsmodule that directly inserts the CSS contents in the DOM when loaded. It is useful to be able torequire()CSS files.