Skip to content

[DEPRECATED] Basic Webpack loaders for JavaScript apps

License

Notifications You must be signed in to change notification settings

styleguidist/loaders

Repository files navigation

[DEPRECATED] Basic Webpack loaders for JavaScript apps

Build Status npm

This package is deprecated, please use webpack-blocks instead.

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.

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.

About

[DEPRECATED] Basic Webpack loaders for JavaScript apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published