craco-twig-loader

1.0.0 • Public • Published

Craco Twig-Loader Plugin

This is a craco plugin that adds twig-loader to create-react-app version >= 2.

Installation

First, follow the craco Installation Instructions to install the craco package, create a craco.config.js file, and modify the scripts in your package.json.

Then install craco-twig-loader:

$ yarn add craco-twig-loader

# OR

$ npm i -S craco-twig-loader

Usage

Here is a complete craco.config.js configuration file that adds raw-loader to create-react-app:

const CracoTwigLoaderPlugin = require("craco-twig-loader");

module.exports = {
  plugins: [{ plugin: CracoTwigLoaderPlugin }]
};

Inspiration

This is heavily borrowed from @baristalabs/craco-raw-loader

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i craco-twig-loader

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.13 kB

Total Files

4

Last publish

Collaborators

  • khaliqgant