1. loaders
Basic Webpack loaders for JavaScript apps
loaders
Package: loaders
Created by: styleguidist
Last modified: Sun, 19 Jun 2022 13:14:01 GMT
Version: 1.1.3
License: MIT
Downloads: 842
Repository: https://github.com/styleguidist/loaders

Install

npm install loaders
yarn add loaders

Basic Webpack loaders for JavaScript apps

Build Status
npm

Basic Webpack loaders:

  • babel-loader with babel-preset-react-app preset
  • css-loader and style-loader
  • json-loader
  • url-loader for all other files

Based on create-react-app but don’t include Autoprefixer.

Usage with React Styleguidist

npm install --save-dev loaders
 // styleguide.config.js
const loaders = require('loaders');
module.exports = {
  components: 'lib/components/**/[A-Z]*.js',
  webpackConfig: {
    module: {
      // Enable all loaders
      loaders: loaders.all,

      // OR only needed loaders
      loaders: [
        loaders.babel,
        loaders.css,
        loaders.url,
        // Other loaders for your styleguide
      ],
    },
  },
};

Changelog

The changelog can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code