Single-file Components For React – one-loader

Description:

A webpack loader to enable single-file React components.

Features:

  • CSS and JavaScript code co-located in a single .one file (extension is configurable)
  • Configurable loaders for JavaScript and CSS
  • Support for scoped styles through CSS Modules (using css-loader)

Installation:

$ npm i –save-dev one-loader

Preview:

one-loader

Add Comment