New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

loaders

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loaders

Basic Webpack loaders for JavaScript apps

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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.

Keywords

webpack

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts